|
|
@ -56,7 +56,11 @@ func GetMenu(ctx iris.Context) { |
|
|
|
func GetMenuTreeRoleselect(ctx iris.Context) { |
|
|
|
var Menu models.Menu |
|
|
|
SysRole := new(models.Roletab) |
|
|
|
id,_ := ctx.Params().GetInt("roleId") |
|
|
|
id,err := ctx.Params().GetInt("roleId") |
|
|
|
if err != nil { |
|
|
|
supports.Error(ctx, iris.StatusBadRequest, "格式错误!", nil) |
|
|
|
return |
|
|
|
} |
|
|
|
SysRole.RoleId = id |
|
|
|
result, err := Menu.SetMenuLable() |
|
|
|
if err != nil { |
|
|
|