feature: 新增设置角色菜单配置

This commit is contained in:
anyanfei
2022-03-24 09:42:47 +08:00
parent 7c658e26c0
commit b392dd51af
3 changed files with 67 additions and 4 deletions

View File

@@ -7,9 +7,10 @@
package adminForm
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/bufanyun/hotgo/app/form"
"github.com/bufanyun/hotgo/app/form/input"
"github.com/gogf/gf/v2/frame/g"
)
// 查询列表
@@ -87,3 +88,11 @@ type RoleDynamicMenu struct {
}
type RoleDynamicRes []*RoleDynamicMenu
type RoleMenuEditReq struct {
g.Meta `path:"/role/edit" method:"post" tags:"角色" summary:"编辑角色菜单权限"`
RoleId int64 `json:"id"`
MenuIds []int64 `json:"menuIds"`
}
type RoleMenuEditRes struct{}