-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequest.go
More file actions
41 lines (37 loc) · 1.22 KB
/
request.go
File metadata and controls
41 lines (37 loc) · 1.22 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
package qcloudsms
// QRequest is request content to QCloud API.
type QRequest struct {
Path string `json:"-"`
Type int `json:"type"`
Tel interface{} `json:"tel"`
Msg string `json:"msg"`
Extend string `json:"extend"`
Ext string `json:"ext"`
Max int `json:"max"`
BeginTime int64 `json:"begin_time"`
EndTime int64 `json:"end_time"`
NationCode string `json:"nationcode"`
Mobile string `json:"mobile"`
// Generation form client.
Sig string `json:"sig"`
Time int64 `json:"time"`
}
// QSMSReply retrieve SMS reply event.
type QSMSReply struct {
NationCode string `json:"nationcode"`
Mobile string `json:"mobile"`
Text string `json:"text"`
Sign string `json:"sign"`
Time int `json:"time"`
Extend string `json:"extend"`
}
// QSMSStatus retrieve SMS send event.
type QSMSStatus struct {
UserReceiveTime string `json:"user_receive_time"`
NationCode string `json:"nationcode"`
Mobile string `json:"mobile"`
ReportStatus string `json:"report_status"`
ErrMsg string `json:"errmsg"`
Description string `json:"description"`
Sid string `json:"sid"`
}