feat✨: 添加修改角色状态接口

This commit is contained in:
zhangwenjian committed 2021-06-09 21:31:31 +08:00
1 parent 91d902389a
commit 1b579fb814
5 files changed
+103 -19

No files matched your search

+1 -1
View File
@@ -139,6 +139,7 @@ func LoginLogToDB(c *gin.Context, status string, msg string, username string) {
}
}
// LogOut
// @Summary 退出登录
// @Description 获取token
// LoginHandler can be used by clients to get a jwt token.
@@ -167,7 +168,6 @@ func Authorizator(data interface{}, c *gin.Context) bool {
c.Set("userId", u.UserId)
c.Set("userName", u.Username)
c.Set("dataScope", r.DataScope)
return true
}
return false