Some checks failed
CI / init (push) Has been cancelled
CI / Frontend node 18.16.0 (push) Has been cancelled
CI / Backend go (1.22) (push) Has been cancelled
CI / devops-test (1.22, 18.16.0) (push) Has been cancelled
CI / release-pr (push) Has been cancelled
CI / release-please (push) Has been cancelled
CI / devops-prod (1.22, 18.x) (push) Has been cancelled
CI / docker (push) Has been cancelled
20 lines
715 B
Go
20 lines
715 B
Go
package system
|
|
|
|
type SysMenu struct {
|
|
SysBaseMenu
|
|
MenuId uint `json:"menuId" gorm:"comment:菜单ID"`
|
|
AuthorityId uint `json:"-" gorm:"comment:角色ID"`
|
|
Children []SysMenu `json:"children" gorm:"-"`
|
|
Parameters []SysBaseMenuParameter `json:"parameters" gorm:"foreignKey:SysBaseMenuID;references:MenuId"`
|
|
Btns map[string]uint `json:"btns" gorm:"-"`
|
|
}
|
|
|
|
type SysAuthorityMenu struct {
|
|
MenuId string `json:"menuId" gorm:"comment:菜单ID;column:sys_base_menu_id"`
|
|
AuthorityId string `json:"-" gorm:"comment:角色ID;column:sys_authority_authority_id"`
|
|
}
|
|
|
|
func (s SysAuthorityMenu) TableName() string {
|
|
return "sys_authority_menus"
|
|
}
|