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
404 B

  1. package model
  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"`
  7. Parameters []SysBaseMenuParameter `json:"parameters" gorm:"ForeignKey:MenuId"`
  8. }
  9. func (s SysMenu) TableName() string {
  10. return "authority_menu"
  11. }