|
@@ -39,8 +39,8 @@ type ManualClassifyList struct {
|
|
|
ClassifyId int
|
|
|
ClassifyName string
|
|
|
ParentId int
|
|
|
- CheckList []int
|
|
|
- Child []*ManualClassifyList
|
|
|
+ CheckList []int `gorm:"-"`
|
|
|
+ Child []*ManualClassifyList `gorm:"-"`
|
|
|
}
|
|
|
|
|
|
func GetManualClassifyAll(adminId int) (items []*ManualClassifyList, err error) {
|
|
@@ -114,7 +114,9 @@ func GetManualClassifyAllV2() (items []*ManualClassifyList, err error) {
|
|
|
if err != nil {
|
|
|
return
|
|
|
}
|
|
|
- newItems[i].Child = childItems
|
|
|
+ if childItems != nil && len(childItems) > 0 {
|
|
|
+ newItems[i].Child = childItems
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
for _, v := range newItems {
|