소스 검색

no message

xingzai 2 년 전
부모
커밋
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 {
 		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:晨报点评"`
 }
 
 // 获取数量