浏览代码

修复阅读记录bug

kobe6258 5 月之前
父节点
当前提交
77976d8b1e
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      models/user_source_click_flow.go

+ 3 - 0
models/user_source_click_flow.go

@@ -20,6 +20,7 @@ type UserSourceClickFlow struct {
 	UseId               int
 	Mobile              string
 	SourceId            int
+	SourceTitle         string
 	SourceType          SourceType
 	ClickTime           time.Time
 	ReadDurationSeconds int64
@@ -35,6 +36,7 @@ func (m *UserSourceClickFlow) ToView() UserSourceClickFlowView {
 		ClickTime:           m.ClickTime.Format(time.DateTime),
 		SourceId:            m.SourceId,
 		SourceName:          getSourceName(m.SourceType),
+		SourceTitle:         m.SourceTitle,
 		ReadDurationMinutes: parseMinutes(m.ReadDurationSeconds),
 	}
 }
@@ -50,6 +52,7 @@ func parseMinutes(seconds int64) string {
 type UserSourceClickFlowView struct {
 	SourceId            int
 	SourceName          string
+	SourceTitle         string
 	PermissionNames     string
 	ClickTime           string
 	ReadDurationMinutes string