xingzai %!s(int64=4) %!d(string=hai) anos
pai
achega
72a990ee8c
Modificáronse 2 ficheiros con 4 adicións e 2 borrados
  1. 1 0
      controllers/report.go
  2. 3 2
      models/report_mapping.go

+ 1 - 0
controllers/report.go

@@ -134,6 +134,7 @@ func (this *ReportController) ArticleCategoryList() {
 	resp := new(models.IndustrialToArticleCategoryListRep)
 	resp := new(models.IndustrialToArticleCategoryListRep)
 	resp.List = list
 	resp.List = list
 	resp.LayoutTime = detail.LayoutTime
 	resp.LayoutTime = detail.LayoutTime
+	resp.IndustryName = detail.IndustryName
 	br.Ret = 200
 	br.Ret = 200
 	br.Success = true
 	br.Success = true
 	br.Msg = "获取成功"
 	br.Msg = "获取成功"

+ 3 - 2
models/report_mapping.go

@@ -46,8 +46,9 @@ type IndustrialToArticleCategoryRep struct {
 }
 }
 
 
 type IndustrialToArticleCategoryListRep struct {
 type IndustrialToArticleCategoryListRep struct {
-	LayoutTime string `description:"布局时间"`
-	List       []*IndustrialToArticleCategoryRep
+	LayoutTime   string `description:"布局时间"`
+	IndustryName string `description:"产业名称"`
+	List         []*IndustrialToArticleCategoryRep
 }
 }
 
 
 //产业下所关联的文章分类列表
 //产业下所关联的文章分类列表