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" }