浏览代码

update:添加菜单长度

zoie 1 月之前
父节点
当前提交
cb5c3676aa
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Power/Power.go

+ 1 - 1
Power/Power.go

@@ -11,7 +11,7 @@ type Power struct {
 	T_id   string `orm:"size(8);null"`   //  权限ID
 	T_name string `orm:"size(256);null"` //  权限名称
 
-	T_menu string `orm:"size(256);null"` //  Account.Menu.Id 设备通知策略  M1|M2|
+	T_menu string `orm:"type(text);null"` //  Account.Menu.Id 设备通知策略  M1|M2|
 
 	T_State    int       `orm:"size(200);default(1)"`                                  //  0删除  1 正常
 	CreateTime time.Time `orm:"column(create_time);type(timestamp);null;auto_now_add"` //auto_now 每次 model 保存时都会对时间自动更新