批量优化
This commit is contained in:
1 parent
e3db229f41
commit
aa92ca40a2
79 files changed
+7495
-1104
No files matched your search
@@ -2,6 +2,16 @@ package models
|
||||
|
||||
import "time"
|
||||
|
||||
// 展示端(platforms 字段取值)
|
||||
//
|
||||
// 与 views(平台端 / 租户端)是两个独立维度:
|
||||
// views —— 决定菜单出现在「平台后台」还是「租户后台」
|
||||
// platforms —— 决定菜单/模块出现在 Web 端还是移动端(APP / 小程序)
|
||||
const (
|
||||
PlatformWeb = "web" // Web 端:租户管理后台(PC 浏览器)
|
||||
PlatformApp = "app" // 移动端:uniapp APP / 微信小程序
|
||||
)
|
||||
|
||||
// SystemMenu 系统菜单表 yz_system_menu
|
||||
type SystemMenu struct {
|
||||
ID uint64 `orm:"column(id);pk;auto" json:"id"` // 菜单ID
|
||||
@@ -14,6 +24,7 @@ type SystemMenu struct {
|
||||
Status int8 `orm:"column(status);default(0)" json:"status"` // 状态:1-启用,0-禁用
|
||||
IsVisible *int8 `orm:"column(is_visible);null" json:"isVisible"` // 是否显示:1-显示 0-不显示
|
||||
Views *string `orm:"column(views);size(255);null" json:"views"` // 菜单显示端(JSON数组字符串):[1]=平台端 [2]=租户端 [1,2]=双端
|
||||
Platforms *string `orm:"column(platforms);size(64);null" json:"platforms"` // 展示端(JSON数组字符串):["web"] ["app"] ["web","app"];空/NULL=全端
|
||||
Type int8 `orm:"column(type)" json:"type"` // 菜单类型:1-目录,2-页面,3-接口
|
||||
Permission *string `orm:"column(permission);size(100);null" json:"permission"` // 权限标识(按钮类型时填写)
|
||||
Creater *string `orm:"column(creater);size(50);null" json:"creater"` // 创建者
|
||||
|
||||
Reference in new issue
Block a user