Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseController ¶
type BaseController struct { policy.Authorization auth.RequestUser validator.Validation }
type Controller ¶
type Controller interface { Validate(c validator.Context, _validator interface{}, onlyFirstError bool) (isAbort bool) Authorize(c auth.Context, policies policy.Policier, action policy.Action) (permit bool, user auth.IUser) Scan(c auth.Context) (isAbort bool) User() auth.IUser UserId(c auth.Context) (userId uint, isAbort bool) }
Click to show internal directories.
Click to hide internal directories.