Browse Source

修复阅读记录bug

kobe6258 5 months ago
parent
commit
77976d8b1e
1 changed files with 3 additions and 0 deletions
  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
 	UseId               int
 	Mobile              string
 	Mobile              string
 	SourceId            int
 	SourceId            int
+	SourceTitle         string
 	SourceType          SourceType
 	SourceType          SourceType
 	ClickTime           time.Time
 	ClickTime           time.Time
 	ReadDurationSeconds int64
 	ReadDurationSeconds int64
@@ -35,6 +36,7 @@ func (m *UserSourceClickFlow) ToView() UserSourceClickFlowView {
 		ClickTime:           m.ClickTime.Format(time.DateTime),
 		ClickTime:           m.ClickTime.Format(time.DateTime),
 		SourceId:            m.SourceId,
 		SourceId:            m.SourceId,
 		SourceName:          getSourceName(m.SourceType),
 		SourceName:          getSourceName(m.SourceType),
+		SourceTitle:         m.SourceTitle,
 		ReadDurationMinutes: parseMinutes(m.ReadDurationSeconds),
 		ReadDurationMinutes: parseMinutes(m.ReadDurationSeconds),
 	}
 	}
 }
 }
@@ -50,6 +52,7 @@ func parseMinutes(seconds int64) string {
 type UserSourceClickFlowView struct {
 type UserSourceClickFlowView struct {
 	SourceId            int
 	SourceId            int
 	SourceName          string
 	SourceName          string
+	SourceTitle         string
 	PermissionNames     string
 	PermissionNames     string
 	ClickTime           string
 	ClickTime           string
 	ReadDurationMinutes string
 	ReadDurationMinutes string