router.go 360 B

123456789101112
  1. package router
  2. import (
  3. "github.com/gin-gonic/gin"
  4. jwt "gogs.baozhida.cn/zoie/OAuth-core/pkg/jwtauth"
  5. )
  6. var (
  7. routerNoCheckRole = make([]func(*gin.RouterGroup), 0)
  8. routerOpenapi = make([]func(v1 *gin.RouterGroup, openapiMiddleware gin.HandlerFunc), 0)
  9. routerCheckRole = make([]func(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddleware), 0)
  10. )