Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
U
utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
library
utils
Commits
08c51694
Verified
Commit
08c51694
authored
Aug 16, 2019
by
Cui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add new prop
parent
d0c36b6f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
structs.go
sender/structs.go
+11
-0
No files found.
sender/structs.go
View file @
08c51694
...
...
@@ -396,6 +396,10 @@ type AppMessage struct {
ProjectId
string
`json:"projectId" bson:"projectId"`
ProductId
string
`json:"productId" bson:"productId"`
PushAim
string
`json:"pushAim" bson:"pushAim"`
// { enum: [ 'PURCHASE_TRANSFORM', 'COURSE_TEST' ] }, // 推送目的 PURCHASE_TRANSFORM:购买转化 COURSE_TEST:课程内测
PracticeId
string
`json:"practiceId" bson:"practiceId"`
// 选择试听课
ExperienceButton
string
`json:"experienceButton" bson:"experienceButton"`
// 试听结果页按钮
}
`json:"extra"`
}
...
...
@@ -413,6 +417,13 @@ func (am *AppMessage) ToFields() (fields logrus.Fields) {
fields
[
"channelId"
]
=
am
.
Extra
.
ChannelId
fields
[
"channelGroupId"
]
=
am
.
Extra
.
ChannelGroupId
fields
[
"projectId"
]
=
am
.
Extra
.
ProjectId
fields
[
"productId"
]
=
am
.
Extra
.
ProductId
fields
[
"pushAim"
]
=
am
.
Extra
.
PushAim
fields
[
"practiceId"
]
=
am
.
Extra
.
PracticeId
fields
[
"experienceButton"
]
=
am
.
Extra
.
ExperienceButton
fields
[
"unReadCount"
]
=
am
.
Extra
.
UnReadCount
fields
[
"messageId"
]
=
am
.
Extra
.
MessageId
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment