2
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package view
|
||||
|
||||
import "time"
|
||||
|
||||
type LayuiTree struct {
|
||||
ID string `json:"id"`
|
||||
Title string `json:"title"`
|
||||
@@ -17,3 +19,37 @@ 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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user