From c9ce93d5a6ba980cbf654783e809c9aacb3c70dd Mon Sep 17 00:00:00 2001 From: pixel <303176530@qq.com> Date: Thu, 27 Aug 2020 12:56:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2=E8=87=AA=E5=8A=A8=E5=BB=BA?= =?UTF-8?q?=E8=A1=A8=E5=A4=B1=E8=B4=A5=20=E8=A7=92=E8=89=B2id=E4=B8=BB?= =?UTF-8?q?=E9=94=AE=E9=95=BF=E5=BA=A6=E9=99=90=E5=88=B6=E4=B8=BA100?= 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 6e55b07e..0c1af2ef 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" gorm:"comment:'角色ID'"` + AuthorityId string `json:"authorityId" gorm:"not null;unique;primary_key;comment:'角色ID';type:varchar(100)"` 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"`