|
|
|
@ -31,10 +31,10 @@ type Rights interface {
|
|
|
|
|
// CRUDable defines the crud methods
|
|
|
|
|
type CRUDable interface {
|
|
|
|
|
Create(*xorm.Session, Auth) error
|
|
|
|
|
ReadOne(*xorm.Session) error
|
|
|
|
|
ReadOne(*xorm.Session, Auth) error
|
|
|
|
|
ReadAll(s *xorm.Session, auth Auth, search string, page int, perPage int) (result interface{}, resultCount int, numberOfTotalItems int64, err error)
|
|
|
|
|
Update(*xorm.Session) error
|
|
|
|
|
Delete(*xorm.Session) error
|
|
|
|
|
Update(*xorm.Session, Auth) error
|
|
|
|
|
Delete(*xorm.Session, Auth) error
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// HTTPErrorProcessor is executed when the defined error is thrown, it will make sure the user sees an appropriate error message and http status code
|
|
|
|
|