vikunja-api/models/crudable.go

11 lines
205 B
Go
Raw Normal View History

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