Documentation ¶
Index ¶
- func APIDemoRouter(g *gin.RouterGroup, demo *ctl.Demo)
- func APILoginRouter(g *gin.RouterGroup, login *ctl.Login)
- func APIMenuRouter(g *gin.RouterGroup, menu *ctl.Menu)
- func APIRoleRouter(g *gin.RouterGroup, role *ctl.Role)
- func APIUserRouter(g *gin.RouterGroup, user *ctl.User)
- func APIV1Handler(r *gin.Engine, db *mysql.DB, c *ctl.Common)
- func RecoveryMiddleware(c *gin.Context)
- func SessionMiddleware(db *mysql.DB, allowPrefixes ...string) gin.HandlerFunc
- func TraceMiddleware(allowPrefixes ...string) gin.HandlerFunc
- func VerifySessionMiddleware(allowPrefixes, skipPrefixes []string) gin.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIDemoRouter ¶
func APIDemoRouter(g *gin.RouterGroup, demo *ctl.Demo)
APIDemoRouter 注册/demos路由
func APILoginRouter ¶
func APILoginRouter(g *gin.RouterGroup, login *ctl.Login)
APILoginRouter 注册登录相关路由
func APIMenuRouter ¶
func APIMenuRouter(g *gin.RouterGroup, menu *ctl.Menu)
APIMenuRouter 注册/menus路由
func APIRoleRouter ¶
func APIRoleRouter(g *gin.RouterGroup, role *ctl.Role)
APIRoleRouter 注册/roles路由
func APIUserRouter ¶
func APIUserRouter(g *gin.RouterGroup, user *ctl.User)
APIUserRouter 注册/users路由
func APIV1Handler ¶
APIV1Handler /api/v1路由
func SessionMiddleware ¶
func SessionMiddleware(db *mysql.DB, allowPrefixes ...string) gin.HandlerFunc
SessionMiddleware session中间件
func TraceMiddleware ¶
func TraceMiddleware(allowPrefixes ...string) gin.HandlerFunc
TraceMiddleware 跟踪ID中间件
func VerifySessionMiddleware ¶
func VerifySessionMiddleware(allowPrefixes, skipPrefixes []string) gin.HandlerFunc
VerifySessionMiddleware 验证session中间件
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.