添加用户的冻结功能

This commit is contained in:
king
2022-06-21 22:18:06 +08:00
parent 6321564bed
commit 1e6dfbff96
5 changed files with 51 additions and 3 deletions

View File

@@ -44,6 +44,8 @@ func JWTAuth() gin.HandlerFunc {
c.Abort()
return
}
// 已登录用户被管理员禁用 需要使该用户的jwt失效 此处比较消耗性能 如果需要 请自行打开
// 用户被删除的逻辑 需要优化 此处比较消耗性能 如果需要 请自行打开
//if err, _ = userService.FindUserByUuid(claims.UUID.String()); err != nil {
// _ = jwtService.JsonInBlacklist(system.JwtBlacklist{Jwt: token})