2018-07-08 22:50:01 +02:00
|
|
|
package models
|
|
|
|
|
|
|
|
type CRUDable interface {
|
2018-07-09 23:17:19 +02:00
|
|
|
Create(*User) (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
|
|
|
}
|