vikunja-api/models/crudable.go

11 lines
217 B
Go
Raw Normal View History

package models
2018-07-10 14:02:23 +02:00
// CRUDable defines the crud methods
type CRUDable interface {
2018-07-10 14:02:23 +02:00
Create(*User) error
ReadOne(int64) error
ReadAll(*User) (interface{}, error)
Update(int64, *User) error
2018-07-10 13:27:25 +02:00
Delete(int64, *User) error
}