New structure (#7)
This commit is contained in:
10
pkg/models/crudable.go
Normal file
10
pkg/models/crudable.go
Normal file
@ -0,0 +1,10 @@
|
||||
package models
|
||||
|
||||
// CRUDable defines the crud methods
|
||||
type CRUDable interface {
|
||||
Create(*User) error
|
||||
ReadOne() error
|
||||
ReadAll(*User) (interface{}, error)
|
||||
Update() error
|
||||
Delete() error
|
||||
}
|
Reference in New Issue
Block a user