ziwen hace 2 años
padre
commit
61be317ba8
Se han modificado 2 ficheros con 7 adiciones y 0 borrados
  1. 6 0
      controller/pc/pc.go
  2. 1 0
      models/response/pc/report.go

+ 6 - 0
controller/pc/pc.go

@@ -146,6 +146,7 @@ func ClassifyDetailBanner(c *gin.Context) {
 			ReportId: chapterItem.ReportId,
 			Stage:    chapterItem.Stage,
 			ImgUrl:   "",
+			Type:     "报告合集",
 		}
 		bannerResp = resp
 	} else {
@@ -177,6 +178,11 @@ func ClassifyDetailBanner(c *gin.Context) {
 			ImgUrl:             "",
 			ClassifyNameSecond: reportItem.ClassifyNameSecond,
 		}
+		if classifyName == "月报"|| classifyName == "双周报"|| classifyName == "会议纪要"|| classifyName == "大事点评"|| classifyName == "年报合集"{
+			resp.Type = "报告合集"
+		} else {
+			resp.Type = "专栏详情"
+		}
 		bannerResp = resp
 	}
 	response.OkData("查询成功", bannerResp, c)

+ 1 - 0
models/response/pc/report.go

@@ -99,6 +99,7 @@ type DetailBannerResp struct {
 	Author             string
 	ImgUrl             string
 	ClassifyNameSecond string
+	Type string
 }
 
 type LatestReportBanner struct {