瀏覽代碼

no message

xingzai 1 年之前
父節點
當前提交
e5a53f78cd
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      controllers/tactics.go
  2. 1 0
      models/tactics_time_line.go

+ 1 - 0
controllers/tactics.go

@@ -356,6 +356,7 @@ func (this *TacticsController) TacticsTimeLineList() {
 	}
 	}
 	for _, v := range list {
 	for _, v := range list {
 		v.PublishTime = utils.TimeRemoveHms2(v.PublishTime)
 		v.PublishTime = utils.TimeRemoveHms2(v.PublishTime)
+		v.Resource = 1
 	}
 	}
 	if len(list) == 0 {
 	if len(list) == 0 {
 		list = make([]*models.CygxTacticsTimeLineResp, 0)
 		list = make([]*models.CygxTacticsTimeLineResp, 0)

+ 1 - 0
models/tactics_time_line.go

@@ -43,6 +43,7 @@ type CygxTacticsTimeLineResp struct {
 	ArticleId   int    `description:"文章ID"`
 	ArticleId   int    `description:"文章ID"`
 	ChartId     int    `description:"图表ID"`
 	ChartId     int    `description:"图表ID"`
 	Link        string `description:"文章或图表链接"`
 	Link        string `description:"文章或图表链接"`
+	Resource    int    `description:"来源类型,1:文章、2:产品内测、3:晨报点评"`
 }
 }
 
 
 // 获取数量
 // 获取数量