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
de593c9e
Verified
Commit
de593c9e
authored
Sep 29, 2019
by
Cui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add classType
parent
eaea688c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
structs.go
sender/structs.go
+2
-0
No files found.
sender/structs.go
View file @
de593c9e
...
...
@@ -19,6 +19,7 @@ type MessageLog struct {
ChannelGroupName
string
`json:"channelGroupName" bson:"channelGroupName"`
// 频道组
Tels
string
`json:"tels" bson:"tels"`
// 短信目标用户手机号
TplID
string
`json:"tplID" bson:"tplID"`
// 短信模板ID
ClassType
string
`json:"classType" bson:"classType"`
// 课程类型:classType=Channel、hotVip【频道、爆款VIP】
Action
string
`json:"action" bson:"action"`
// 推送类型 OneTime_Push,Timing_Push,Delay_Push,Normal_Push
State
string
`json:"state" bson:"state"`
// succeeded-成功 failed-失败
...
...
@@ -91,6 +92,7 @@ func (m *MessageStruct) ToFields() (fields logrus.Fields) {
fields
[
"tels"
]
=
m
.
Tels
fields
[
"tplID"
]
=
m
.
TplID
fields
[
"classType"
]
=
m
.
ClassType
fields
[
"action"
]
=
m
.
Action
fields
[
"state"
]
=
m
.
State
fields
[
"date"
]
=
m
.
Date
...
...
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