hongze 6 months ago
parent
commit
5b528f6bf1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      models/system/sys_menu.go

+ 2 - 2
models/system/sys_menu.go

@@ -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 {