goweb-gin-demo/router/web/jwt.go

18 lines
333 B
Go
Raw Normal View History

2021-10-29 14:39:50 +08:00
package web
import (
"github.com/gin-gonic/gin"
2021-11-02 17:48:39 +08:00
"goweb-gin-demo/api"
2021-10-29 14:39:50 +08:00
)
type JwtRouter struct {
}
func (s *JwtRouter) InitJwtRouter(Router *gin.RouterGroup) {
jwtRouter := Router.Group("jwt")
2021-11-02 17:48:39 +08:00
var jwtApi = api.ApiGroupApp.ApiGroup.JwtApi
2021-10-29 14:39:50 +08:00
{
jwtRouter.POST("jsonInBlacklist", jwtApi.JsonInBlacklist) // jwt加入黑名单
}
}