|
@@ -5,12 +5,12 @@ import (
|
|
)
|
|
)
|
|
|
|
|
|
type SysAuthority struct {
|
|
type SysAuthority struct {
|
|
- CreatedAt time.Time
|
|
|
|
- UpdatedAt time.Time
|
|
|
|
|
|
+ CreatedAt time.Time // 创建时间
|
|
|
|
+ UpdatedAt time.Time // 更新时间
|
|
DeletedAt *time.Time `sql:"index"`
|
|
DeletedAt *time.Time `sql:"index"`
|
|
AuthorityId string `json:"authorityId" gorm:"not null;unique;primary_key;comment:角色ID;size:90"` // 角色ID
|
|
AuthorityId string `json:"authorityId" gorm:"not null;unique;primary_key;comment:角色ID;size:90"` // 角色ID
|
|
- AuthorityName string `json:"authorityName" gorm:"comment:角色名"` // 角色名
|
|
|
|
- ParentId string `json:"parentId" gorm:"comment:父角色ID"` // 父角色ID
|
|
|
|
|
|
+ AuthorityName string `json:"authorityName" gorm:"comment:角色名"` // 角色名
|
|
|
|
+ ParentId string `json:"parentId" gorm:"comment:父角色ID"` // 父角色ID
|
|
DataAuthorityId []SysAuthority `json:"dataAuthorityId" gorm:"many2many:sys_data_authority_id"`
|
|
DataAuthorityId []SysAuthority `json:"dataAuthorityId" gorm:"many2many:sys_data_authority_id"`
|
|
Children []SysAuthority `json:"children" gorm:"-"`
|
|
Children []SysAuthority `json:"children" gorm:"-"`
|
|
SysBaseMenus []SysBaseMenu `json:"menus" gorm:"many2many:sys_authority_menus;"`
|
|
SysBaseMenus []SysBaseMenu `json:"menus" gorm:"many2many:sys_authority_menus;"`
|