|
@@ -40,10 +40,22 @@ func List(c *gin.Context) { |
|
|
} |
|
|
} |
|
|
list = append(list, tmp1) |
|
|
list = append(list, tmp1) |
|
|
} |
|
|
} |
|
|
|
|
|
tmp["list"] = list |
|
|
} |
|
|
} |
|
|
resp.SelectData = append(resp.SelectData, tmp) |
|
|
resp.SelectData = append(resp.SelectData, tmp) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
resp.CateData = make([]map[string]interface{}, 0) |
|
|
|
|
|
cate, _, _ := NewArticleCateDb.FindArticleCateAndTotalPid("1", "100") |
|
|
|
|
|
if cate != nil { |
|
|
|
|
|
for _, v := range *cate { |
|
|
|
|
|
list := make([]map[string]string, 0) |
|
|
|
|
|
tmp := map[string]interface{}{ |
|
|
|
|
|
"name": v.Name, "value": utils.IntToStr(v.Id), "list": list, |
|
|
|
|
|
} |
|
|
|
|
|
resp.CateData = append(resp.CateData, tmp) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
if notice != nil { |
|
|
if notice != nil { |
|
|
for _, v := range *notice { |
|
|
for _, v := range *notice { |
|
|
tmp := md.ArticleList{ |
|
|
tmp := md.ArticleList{ |
|
|