sys_jwt.go 333 B

12345678910111213141516
  1. package system
  2. import (
  3. "github.com/gin-gonic/gin"
  4. v1 "lcfns/api/v1"
  5. )
  6. type JwtRouter struct{}
  7. func (s *JwtRouter) InitJwtRouter(Router *gin.RouterGroup) {
  8. jwtRouter := Router.Group("jwt")
  9. jwtApi := v1.ApiGroupApp.SystemApiGroup.JwtApi
  10. {
  11. jwtRouter.POST("jsonInBlacklist", jwtApi.JsonInBlacklist) // jwt加入黑名单
  12. }
  13. }