权限过滤器

This commit is contained in:
yxh
2020-02-20 17:43:55 +08:00
parent 732b9f3017
commit 903dac499d
12 changed files with 135 additions and 66 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ func (c *Index) Index(r *ghttp.Request) {
//菜单列表
var menuList g.List
if userInfo != nil {
userId := gconv.Int64(userInfo["id"])
userId := gconv.Int(userInfo["id"])
delete(userInfo, "user_password")
//获取用户角色信息
roles, err := user_service.GetAdminRole(userId)