Browse Source

no message

xingzai 1 year ago
parent
commit
e5a53f78cd
2 changed files with 2 additions and 0 deletions
  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 {
 		v.PublishTime = utils.TimeRemoveHms2(v.PublishTime)
+		v.Resource = 1
 	}
 	if len(list) == 0 {
 		list = make([]*models.CygxTacticsTimeLineResp, 0)

+ 1 - 0
models/tactics_time_line.go

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