42 lines
1.6 KiB
Go
42 lines
1.6 KiB
Go
package application
|
||
|
||
import "time"
|
||
|
||
type ApplicationInfo struct {
|
||
ID uint `json:"id"` // id
|
||
Code string `json:"code"` // code
|
||
Secret string `json:"secret"` // secret
|
||
Name string `json:"name"` // name
|
||
Description string `json:"description"` // 描述
|
||
CreatedBy string `json:"created_by"` // 创建人
|
||
CreatedOn time.Time `json:"created_on"` // 记录创建时间
|
||
ModifiedBy string `json:"modified_by"` // 修改人
|
||
ModifiedOn time.Time `json:"modified_on"` // 记录修改时间
|
||
Menus []Menu `json:"menus"`
|
||
}
|
||
|
||
type Menu struct {
|
||
Id uint32 `json:"id"` // id
|
||
AppCode string `json:"app_code"` // 应用code
|
||
Code string `json:"code"` // 编码
|
||
Name string `json:"name"` // 名称
|
||
ParentCode string `json:"parent_code"` // 父级菜单编码
|
||
Type int32 `json:"type"` // 类型(1:一级导航;2:二级导航;3:三级导航)
|
||
Order int32 `json:"order"` // 排序
|
||
Icon string `json:"icon"` // 图标
|
||
Path string `json:"path"` // 访问路径
|
||
ChildPath string `json:"child_path"` // 子级路径(前端用)
|
||
GoFirstChild int8 `json:"go_first_child"` // 前端用
|
||
IsShow int32 `json:"is_show"` // 是否显示(0:否;1:是)
|
||
Children []Menu `json:"children"`
|
||
}
|
||
|
||
type MenuTree struct {
|
||
Menus []Menu `json:"menus"`
|
||
}
|
||
|
||
type Application struct {
|
||
Info ApplicationInfo `json:"info"`
|
||
Menus []Menu `json:"menus"`
|
||
}
|