9 lines
164 B
Go
9 lines
164 B
Go
package models
|
|
|
|
type CRUDable interface {
|
|
Create(*User) (error)
|
|
ReadOne(int64) error
|
|
ReadAll(*User) (interface{}, error)
|
|
Update(int64, *User) error
|
|
Delete()
|
|
}
|