Browse Source

no message

xingzai 2 months ago
parent
commit
1ef697bdb4
2 changed files with 7 additions and 0 deletions
  1. 6 0
      controllers/report.go
  2. 1 0
      models/report.go

+ 6 - 0
controllers/report.go

@@ -916,6 +916,9 @@ func (this *MobileReportController) SearchReport() {
 				ButtonStyle:     styleMap[v.ArticleTypeId],
 				List:            v.List,
 			}
+			if v.ReportId > 0 {
+				item.Resource = 3
+			}
 			resp.ListHz = append(resp.ListHz, &item)
 		}
 
@@ -995,6 +998,9 @@ func (this *MobileReportController) SearchReport() {
 				ButtonStyle:     styleMap[v.ArticleTypeId],
 				List:            v.List,
 			}
+			if v.ReportId > 0 {
+				item.Resource = 3
+			}
 			if v.IsSpecial == 1 {
 				//去除图片标签
 				item.Annotation = utils.ArticleRemoveImgUrl(item.Annotation)

+ 1 - 0
models/report.go

@@ -860,6 +860,7 @@ type ArticleResearchResp struct {
 	CompanyTags     []string                     `description:"研选专栏公司标签"`
 	SpecialColumnId int                          `description:"专栏栏目id"`
 	TopTime         int                          `description:"置顶时间"`
+	Resource        int                          `description:"来源类型,1:文章、2:产品内测、3:FICC研报"`
 }
 
 // 获取数量