2018-07-08 22:50:01 +02:00
|
|
|
package models
|
|
|
|
|
2018-07-10 14:02:23 +02:00
|
|
|
// CRUDable defines the crud methods
|
2018-07-08 22:50:01 +02:00
|
|
|
type CRUDable interface {
|
2018-07-18 08:56:19 +02:00
|
|
|
Create(*User) error
|
2018-07-21 15:08:46 +02:00
|
|
|
ReadOne() error
|
2018-11-09 18:33:06 +01:00
|
|
|
ReadAll(string, *User, int) (interface{}, error)
|
2018-07-21 15:17:02 +02:00
|
|
|
Update() error
|
2018-07-18 08:15:38 +02:00
|
|
|
Delete() error
|
2018-07-08 22:50:01 +02:00
|
|
|
}
|