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.AuthUser validator.Validation }
type Controller ¶
type Controller interface { Validate(c *gin.Context, _validator interface{}, onlyFirstError bool) (isAbort bool) Authorize(c *gin.Context, policies policy.Policier, action policy.Action) (isAbort bool, user model.IUser) Scan(c *gin.Context) (isAbort bool) User() model.IUser UserId(c *gin.Context) (userId uint, isAbort bool) }
Click to show internal directories.
Click to hide internal directories.