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-11 02:13:53 +02:00
|
|
|
Create(*User, int64) error
|
2018-07-08 22:50:01 +02:00
|
|
|
ReadOne(int64) error
|
|
|
|
ReadAll(*User) (interface{}, error)
|
2018-07-09 23:17:19 +02:00
|
|
|
Update(int64, *User) error
|
2018-07-10 13:27:25 +02:00
|
|
|
Delete(int64, *User) error
|
2018-07-08 22:50:01 +02:00
|
|
|
}
|