Files
arenax-server/internal/model/roleMenu.go

25 lines
483 B
Go

package model
import "github.com/gogf/gf/v2/frame/g"
type RoleMenu struct {
g.Meta `orm:"table:role_menus"`
Id int64 `json:"id" orm:"id" dc:"角色菜单ID"`
RoleId int64 `json:"roleId" orm:"role_id" dc:"角色ID"`
MenuId int64 `json:"menuId" orm:"menu_id" dc:"菜单ID"`
}
type RoleMenuListInput struct {
Page int
Size int
RoleId int64
}
type RoleMenuListOutput struct {
List []RoleMenu
Total int
}
type RoleMenuSaveInput struct {
RoleId int
MenuIds []int
}