You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
435 B

3 years ago
  1. package system
  2. type SysMenu struct {
  3. SysBaseMenu
  4. MenuId string `json:"menuId" gorm:"comment:菜单ID"`
  5. AuthorityId string `json:"-" gorm:"comment:角色ID"`
  6. Children []SysMenu `json:"children" gorm:"-"`
  7. Parameters []SysBaseMenuParameter `json:"parameters" gorm:"foreignKey:SysBaseMenuID;references:MenuId"`
  8. }
  9. func (s SysMenu) TableName() string {
  10. return "authority_menu"
  11. }