package view import ( "time" "management/internal/erpserver/model/dto" "management/internal/erpserver/model/system" ) type LayuiTree struct { ID string `json:"id"` Title string `json:"title"` Spread bool `json:"spread"` Children []*LayuiTree `json:"children"` } type XmSelectTree struct { Name string `json:"name"` Value string `json:"value"` Children []*XmSelectTree `json:"children"` } type XmSelect struct { Name string `json:"name"` Value string `json:"value"` } type MenuTree struct { ID int32 `json:"id"` // 名称 Name string `json:"name"` // 显示名称 DisplayName string `json:"display_name"` // 菜单url Url string `json:"url"` // 菜单类型(node, menu, btn) Type string `json:"type"` // 上级id ParentID int32 `json:"parent_id"` // 树路径 ParentPath string `json:"parent_path"` // 菜单图标 Avatar string `json:"avatar"` // 菜单样式 Style string `json:"style"` // 是否可见 Visible bool `json:"visible"` // 是否列表 IsList bool `json:"is_list"` // 状态 Status int32 `json:"status"` // 排序 Sort int32 `json:"sort"` // 创建时间 CreatedAt time.Time `json:"created_at"` // 更新时间 UpdatedAt time.Time `json:"updated_at"` Children []*MenuTree `json:"children"` } type EditSysConfig struct { *system.Config Result string } type SetMenuView struct { Role *system.Role Menus []*dto.SetMenuDto }