Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
//FirstURL for check whether they meet the requirements to execution middleware
FirstURL = "/api/v1/permission/addurl"
)
Functions ¶
func CheckPermission ¶
func CheckPermission(c *Controller, getUID func(ctx *gin.Context) (uint32, error)) func(c *gin.Context)
CheckPermission middleware that checks the permission
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller external service interface
func (*Controller) RegisterRouter ¶
func (c *Controller) RegisterRouter(r gin.IRouter)
RegisterRouter register router
Click to show internal directories.
Click to hide internal directories.