busniess-user-center/internal/models/application/application.go

43 lines
1.6 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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"` // 是否显示01
Component string `json:"component"` // 组件路径
Children []Menu `json:"children"`
}
type MenuTree struct {
Menus []Menu `json:"menus"`
}
type Application struct {
Info ApplicationInfo `json:"info"`
Menus []Menu `json:"menus"`
}