vikunja-api/pkg/models/crudable.go

11 lines
201 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) error
2018-07-21 15:08:46 +02:00
ReadOne() error
ReadAll(string, *User, int) (interface{}, error)
Update() error
Delete() error
}