Dump changes
This commit is contained in:
parent
e12550a643
commit
aac2ea1b74
25 changed files with 129 additions and 76 deletions
16
pkg/brainbuffer/domain/task/repository.go
Normal file
16
pkg/brainbuffer/domain/task/repository.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
package task
|
||||
|
||||
import (
|
||||
"brainbuffer/pkg/brainbuffer/domain/repository"
|
||||
)
|
||||
|
||||
type Repository interface {
|
||||
Save(task *Task) (int64, error)
|
||||
FindByID(id int64) (*Task, error)
|
||||
FindAllByUser(userId string, page repository.Page) (Tasks, error)
|
||||
DeleteByID(id int64) error
|
||||
}
|
||||
|
||||
func NewRepository() Repository {
|
||||
return &inMemoryRepository{}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue