增加菜单参数配置功能

移除视图中复杂sql更改为model映射模式
This commit is contained in:
QM303176530
2020-08-11 23:23:37 +08:00
parent 61fdaefe24
commit 834a233d19
6 changed files with 58 additions and 19 deletions
+8 -3
View File
@@ -2,7 +2,12 @@ package model
type SysMenu struct {
SysBaseMenu
MenuId string `json:"menuId" gorm:"comment:'菜单ID'"`
AuthorityId string `json:"-" gorm:"comment:'角色ID'"`
Children []SysMenu `json:"children"`
MenuId string `json:"menuId" gorm:"comment:'菜单ID'"`
AuthorityId string `json:"-" gorm:"comment:'角色ID'"`
Children []SysMenu `json:"children"`
Parameters []SysBaseMenuParameter `json:"parameters" gorm:"ForeignKey:MenuId"`
}
func (s SysMenu) TableName() string {
return "authority_menu"
}