diff --git a/server/model/sys_authority.go b/server/model/sys_authority.go index 6e55b07e9c9a714e6daa937d9dfeb7409f09b92a..0c1af2efffbadac0962e9e4d806308bddfb76738 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"`