You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
460 B
18 lines
460 B
package system
|
|
|
|
import (
|
|
v1 "github.com/flipped-aurora/gin-vue-admin/api/v1"
|
|
"github.com/flipped-aurora/gin-vue-admin/middleware"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type JwtRouter struct {
|
|
}
|
|
|
|
func (s *JwtRouter) InitJwtRouter(Router *gin.RouterGroup) {
|
|
jwtRouter := Router.Group("jwt").Use(middleware.OperationRecord())
|
|
var jwtApi = v1.ApiGroupApp.SystemApiGroup.JwtApi
|
|
{
|
|
jwtRouter.POST("jsonInBlacklist", jwtApi.JsonInBlacklist) // jwt加入黑名单
|
|
}
|
|
}
|