sys_authority_menu.go 435 B

12345678910111213
  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. }