From 7290de07cad91c27658a812accdfa1cd2af6f823 Mon Sep 17 00:00:00 2001 From: QM303176530 <303176530@qq.com> Date: Sat, 29 Aug 2020 16:19:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=91gormv2=E8=BF=87=E5=BA=A6=20=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E7=B1=BB=E5=9E=8B=E9=95=BF=E5=BA=A6=E4=BD=BF?= =?UTF-8?q?=E7=94=A8size=E8=BF=9B=E8=A1=8C=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/model/sys_authority.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/model/sys_authority.go b/server/model/sys_authority.go index 0c1af2ef..a7993b0e 100644 --- a/server/model/sys_authority.go +++ b/server/model/sys_authority.go @@ -8,7 +8,7 @@ type SysAuthority struct { CreatedAt time.Time UpdatedAt time.Time DeletedAt *time.Time `sql:"index"` - AuthorityId string `json:"authorityId" gorm:"not null;unique;primary_key;comment:'角色ID';type:varchar(100)"` + AuthorityId string `json:"authorityId" gorm:"not null;unique;primary_key;comment:'角色ID';size:90"` AuthorityName string `json:"authorityName" gorm:"comment:'角色名'"` ParentId string `json:"parentId" gorm:"comment:'父角色ID'"` DataAuthorityId []SysAuthority `json:"dataAuthorityId" gorm:"many2many:sys_data_authority_id;association_jointable_foreignkey:data_authority_id"` -- GitLab