fixed:菜单删除功能细节调优 (#1705)
* 多文件: 菜单parentId由string改成uint * sys_base_menu.go: fix table name "sys_base_menus" specified more than once (SQLSTATE 42712) (#1704) --------- Co-authored-by: crazyrunsnail <fjyuan1991@163.com>
This commit is contained in:
co-authored by
crazyrunsnail
parent
032910f87a
commit
e3f8b8a394
@@ -2,7 +2,7 @@ package system
|
||||
|
||||
type SysMenu struct {
|
||||
SysBaseMenu
|
||||
MenuId string `json:"menuId" gorm:"comment:菜单ID"`
|
||||
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"`
|
||||
|
||||
Reference in New Issue
Block a user