更新
This commit is contained in:
1 parent
012f8edf8b
commit
36ff960fbd
33 files changed
+1644
-344
No files matched your search
+31
-28
@@ -1,28 +1,31 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
// SystemModules 系统模块表 yz_system_modules
|
||||
type SystemModules struct {
|
||||
ID uint64 `orm:"column(id);pk;auto" json:"id"`
|
||||
Mid *uint64 `orm:"column(mid);null" json:"mid"`
|
||||
Name string `orm:"column(name);size(50)" json:"name"`
|
||||
Code string `orm:"column(code);size(50)" json:"code"`
|
||||
Path string `orm:"column(path);size(100)" json:"path"`
|
||||
Icon string `orm:"column(icon);size(50)" json:"icon"`
|
||||
Description string `orm:"column(description);size(255)" json:"description"`
|
||||
Type int `orm:"column(type);default(0)" json:"type"` // 0未分类 1功能模块 2系统配置
|
||||
Sort int `orm:"column(sort);default(0)" json:"sort"`
|
||||
Status int8 `orm:"column(status);default(1)" json:"status"` // 0禁用 1启用
|
||||
IsShow int8 `orm:"column(is_show);default(1)" json:"is_show"` // 0否 1是
|
||||
// 展示端(JSON 数组字符串):["web"] ["app"] ["web","app"];空/NULL=全端显示。
|
||||
// 取值见 PlatformWeb / PlatformApp。菜单未单独配置时继承所属模块的展示端。
|
||||
Platforms *string `orm:"column(platforms);size(64);null" json:"platforms"`
|
||||
CreateTime *time.Time `orm:"column(create_time);type(datetime);null" json:"create_time"`
|
||||
UpdateTime *time.Time `orm:"column(update_time);type(datetime);null" json:"update_time"`
|
||||
DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"delete_time"`
|
||||
}
|
||||
|
||||
func (m *SystemModules) TableName() string {
|
||||
return "yz_system_modules"
|
||||
}
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
// SystemModules 系统模块表 yz_system_modules
|
||||
type SystemModules struct {
|
||||
ID uint64 `orm:"column(id);pk;auto" json:"id"`
|
||||
Mid *uint64 `orm:"column(mid);null" json:"mid"`
|
||||
Name string `orm:"column(name);size(50)" json:"name"`
|
||||
Code string `orm:"column(code);size(50)" json:"code"`
|
||||
Path string `orm:"column(path);size(100)" json:"path"`
|
||||
Icon string `orm:"column(icon);size(50)" json:"icon"`
|
||||
Description string `orm:"column(description);size(255)" json:"description"`
|
||||
Type int `orm:"column(type);default(0)" json:"type"` // 0未分类 1功能模块 2系统配置
|
||||
Sort int `orm:"column(sort);default(0)" json:"sort"`
|
||||
Status int8 `orm:"column(status);default(1)" json:"status"` // 0禁用 1启用
|
||||
IsShow int8 `orm:"column(is_show);default(1)" json:"is_show"` // 0否 1是
|
||||
// 是否必须登录才能进入该模块:1=必须登录(默认,保持既有行为) 0=可免登录使用。
|
||||
// 移动端 nav 未登录时据此决定宫格卡片点击是「进登录引导」还是「直接进入」。
|
||||
RequireLogin int8 `orm:"column(require_login);default(1)" json:"require_login"`
|
||||
// 展示端(JSON 数组字符串):["web"] ["app"] ["web","app"];空/NULL=全端显示。
|
||||
// 取值见 PlatformWeb / PlatformApp。菜单未单独配置时继承所属模块的展示端。
|
||||
Platforms *string `orm:"column(platforms);size(64);null" json:"platforms"`
|
||||
CreateTime *time.Time `orm:"column(create_time);type(datetime);null" json:"create_time"`
|
||||
UpdateTime *time.Time `orm:"column(update_time);type(datetime);null" json:"update_time"`
|
||||
DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"delete_time"`
|
||||
}
|
||||
|
||||
func (m *SystemModules) TableName() string {
|
||||
return "yz_system_modules"
|
||||
}
|
||||
Reference in new issue
Block a user