Browse Source

no message

xingzai 2 years ago
parent
commit
2467d8a54f
3 changed files with 15 additions and 0 deletions
  1. 8 0
      controllers/report.go
  2. 2 0
      models/page_history_record.go
  3. 5 0
      utils/constants.go

+ 8 - 0
controllers/report.go

@@ -1340,6 +1340,14 @@ func (this *MobileReportController) Timeline() {
 
 	}
 
+	//添加我的日程访问记录
+	item := new(models.CygxPageHistoryRecord)
+	item.UserId = user.UserId
+	item.CreateTime = time.Now()
+	item.CompanyId = user.CompanyId
+	item.CompanyName = user.CompanyName
+	item.Router = utils.TIME_LINE_ROUTE + strconv.Itoa(industrialManagementId)
+	go models.AddCygxPageHistoryRecord(item)
 	if len(list) == 0 {
 		list = make([]*models.TimeLineReportItem, 0)
 	}

+ 2 - 0
models/page_history_record.go

@@ -19,6 +19,8 @@ type CygxPageHistoryRecord struct {
 	IndustrialManagementId string    `description:"产业ID"`
 	PageType               string    `description:"页面类型,纪要:Summary,纪要搜索:SummarySearch,报告:Report,报告搜索:ReportSearch,产业列表:IndustryList,活动:Activit,活动搜索:ActivitSearch,活动详情:ActivitParticulars,报告详情:ReportParticulars,已结束活动:OverActivity"`
 	Parameter              string    `description:"参数"`
+	Router                 string    `description:"路由"`
+	PageRouter             string    `description:"前端页面路径"`
 }
 
 type CygxPageHistoryRecordRep struct {

+ 5 - 0
utils/constants.go

@@ -163,3 +163,8 @@ const (
 const (
 	SendTemplateMsgAuthorization = "dc855fce962a639faa779cbdd4cd332f"
 )
+
+// 时间线路由
+const (
+	TIME_LINE_ROUTE = "/api/report/industry/ArticleList?PageSize=10&CurrentIndex=1&CategoryId=99999&IndustrialManagementId="
+)