|
@@ -62,7 +62,7 @@ type MenuList struct {
|
|
|
Component string `json:"component"`
|
|
|
Hidden bool `json:"hidden"`
|
|
|
ParentId int `json:"-"`
|
|
|
- Children []*MenuList `json:"children"`
|
|
|
+ Children []*MenuList `gorm:"-" json:"children"`
|
|
|
}
|
|
|
|
|
|
type ChildMenu struct {
|
|
@@ -73,7 +73,7 @@ type ChildMenu struct {
|
|
|
Component string `json:"component"`
|
|
|
IconPath string `json:"icon_path"`
|
|
|
Hidden bool `json:"hidden"`
|
|
|
- Children []*ChildMenu `json:"children"`
|
|
|
+ Children []*ChildMenu `gorm:"-" json:"children"`
|
|
|
}
|
|
|
|
|
|
type MenuListResp struct {
|