delapp get menu

This commit is contained in:
suyl
2021-07-08 11:28:16 +08:00
parent 21737e5cd9
commit ace0d7e5f3
9 changed files with 143 additions and 65 deletions

View File

@@ -34,6 +34,11 @@ var (
}
)
type TokenInfo struct {
User *User
Token string `json:"token"`
}
type ModelIDCULD struct {
ID int `json:"id" db:"id"`
CreatedAt *time.Time `json:"created_at" db:"created_at"`
@@ -82,3 +87,18 @@ type Apps struct {
Status int `json:"status"` //状态
Mobile string `json:"mobile"` //手机号
}
type Menu struct {
ID int `json:"id" db:"id"`
CreatedAt *time.Time `json:"created_at" db:"created_at"`
UpdatedAt *time.Time `json:"updated_at" db:"updated_at"`
LastOperator string `json:"last_operator" db:"last_operator"`
DeletedAt *time.Time `json:"deleted_at" db:"deleted_at"`
Name string `json:"name"` //功能名
URL string `json:"url" db:"url"` //路径
ImgURL string `json:"img_url" db:"img_url"` //图标
Level int `json:"level"` //级别
ParentID int `json:"parent_id" db:"parent_id"` //父功能ID
Color string `json:"color"` //颜色
Content string `json:"content"` //菜单内容
}