1package board
2
3import (
4 "github.com/MichaelMure/git-bug/entity"
5 "github.com/MichaelMure/git-bug/entity/dag"
6)
7
8var _ Operation = &AddItemEntityOperation{}
9
10type AddItemEntityOperation struct {
11 dag.OpBase
12 // TODO: entity namespace + id ? or solve https://github.com/MichaelMure/git-bug/pull/664 ?
13 item CardItem
14}
15
16func (op *AddItemEntityOperation) Id() entity.Id {
17 return dag.IdOperation(op, &op.OpBase)
18}
19
20func (op *AddItemEntityOperation) Validate() error {
21 // TODO implement me
22 panic("implement me")
23}
24
25func (op *AddItemEntityOperation) Apply(snapshot *Snapshot) {
26 // TODO implement me
27 panic("implement me")
28}