Repository navigation
Expand file tree
/
Copy pathtypes.go
More file actions
236 lines (215 loc) · 4.3 KB
/
Copy pathtypes.go
File metadata and controls
236 lines (215 loc) · 4.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
package types
// CustomError struct
type CustomError struct {
ErrorCode string
ErrorMessage string
}
// SimpleMessage struct
type SimpleMessage struct {
GroupId string
MessageId string
AccountId string
StatusMessage string
StatusCode string
To string
From string
Type string
Country string
}
// Count struct
type Count struct {
Total int
SentTotal int
SentFailed int
SentSuccess int
SentPending int
SentReplacement int
Refund int
RegisteredFailed int
RegisteredSuccess int
}
// CountForCharge struct
type CountForCharge struct {
SMS map[string]int
LMS map[string]int
MMS map[string]int
ATA map[string]int
CTA map[string]int
CTI map[string]int
}
// Balance struct for Group struct
type BalanceForGroup struct {
Requested float32
Replacement float32
Refund float32
Sum float32
}
// Point struct for Group struct
type Point struct {
Requested int
Replacement int
Refund int
Sum int
}
// Profit struct for App struct
type Profit struct {
SMS float32
LMS float32
MMS float32
ATA float32
CTA float32
CTI float32
}
// App struct for Group struct
type App struct {
Profit Profit
AppId string
Version string
}
// Price struct
type Price struct {
SMS float32
LMS float32
MMS float32
ATA float32
CTA float32
CTI float32
}
// Group struct
type Group struct {
Count Count
CountForCharge CountForCharge
Balance BalanceForGroup
Point Point
App App
SdkVersion string
OsPlatform string
Log []map[string]interface{}
Status string
DateSent string
DateCompleted string
IsRefunded bool
FlagUpdated bool
AccountId string
ApiVersion string
GroupId string
Price map[string]Price
DateCreated string
DateUpdated string
Id string `json:"_id"`
}
// GroupList struct
type GroupList struct {
StartKey string
Limit int
NextKey string
GroupList map[string]Group
}
// GroupMessageList struct
type GroupMessageList struct {
StartKey string
Limit int
MessageList MessageList
}
// KakaoOptions struct
type KakaoOptions struct {
SenderKey string
TemplateCode string
ButtonName string
ButtonUrl string
PfId string
TemplateId string
ImageId string
DisableSms bool
Buttons []map[string]string
}
// Message struct
type Message struct {
KakaoOptions KakaoOptions
Type string
Country string
Subject string
ImageId string
DateProcessed string
DateReported string
DateReceived string
StatusCode string
NetworkCode string
Log []map[string]interface{}
Replacement bool
AutoTypeDetect bool
RoutedQueue string
MessageId string
GroupId string
AccountId string
Text string
From string
To string
CustomFields map[string]string
DateCreated string
DateUpdated string
Reason string
NetworkName string
Status string
}
// MessageList struct
type MessageList struct {
// Data
StartKey string
NextKey string
Limit int
MessageList map[string]Message
}
// AddGroupMessage struct
type AddGroupMessage struct {
To string
From string
Type string
Country string
MessageId string
StatusCode string
StatusMessage string
AccountId string
}
// AddGroupMessageList struct
type AddGroupMessageList struct {
ErrorCount int
ResultList []AddGroupMessage
}
// LowBalanceAlert struct
type LowBalanceAlert struct {
NotificationBalance string
CurrentBalance string
Balances []int
Channels []string
Enabled bool
}
// Balance struct
type Balance struct {
LowBalanceAlert LowBalanceAlert
Point int
MinimumCash int
RechargeTo int
RechargeTryCount int
AutoRecharge int
AccountId string
Balance int
}
// File struct
type File struct {
Kakao map[string]string
Type string
OriginalName string
Link string
FileId string
Name string
Url string
AccountId string
References []string
DateCreated string
DateUpdated string
}
// FileList struct
type FileList struct {
FileList []File
}