This repository has been archived by the owner on Nov 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
result.go
90 lines (82 loc) · 2.46 KB
/
result.go
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
package xiaomipush
type Result struct {
Result string `json:"result"`
MessageID string `json:"trace_id"`
Code int64 `json:"code"`
Description string `json:"description,omitempty"`
Info string `json:"info,omitempty"`
Reason string `json:"reason,omitempty"`
}
type SendResult struct {
Result
Data struct {
ID string `json:"id,omitempty"`
} `json:"data,omitempty"`
}
type StatsResult struct {
Result
Data struct {
Data []struct {
Date string `json:"date"`
AliasRecipients int64 `json:"alias_recipients"`
UserAccountRecipients int64 `json:"useraccount_recipients"`
RegIDRecipients int64 `json:"regid_recipients"`
Received int64 `json:"received"`
BroadcastRecipients int64 `json:"broadcast_recipients"`
Click int64 `json:"click"`
SingleRecipients int64 `json:"single_recipients"`
} `json:"data,omitempty"`
} `json:"data,omitempty"`
}
type SingleStatusResult struct {
Result
Data struct {
Data struct {
CreateTime string `json:"create_time"`
CreateTimestamp int64 `json:"create_timestamp"`
TimeToLive string `json:"time_to_live"`
ClickRate string `json:"click_rate"`
MsgType string `json:"msg_type"`
DeliveryRate string `json:"delivery_rate"`
Delivered int32 `json:"delivered"`
ID string `json:"id"`
Click int32 `json:"click"`
Resolved int32 `json:"resolved"`
} `json:"data,omitempty"`
} `json:"data,omitempty"`
}
type BatchStatusResult struct {
Result
Data struct {
Data []struct {
CreateTime string `json:"create_time"`
CreateTimestamp int64 `json:"create_timestamp"`
TimeToLive string `json:"time_to_live"`
ClickRate string `json:"click_rate"`
MsgType string `json:"msg_type"`
DeliveryRate string `json:"delivery_rate"`
Delivered int32 `json:"delivered"`
ID string `json:"id"`
Click int32 `json:"click"`
Resolved int32 `json:"resolved"`
} `json:"data,omitempty"`
} `json:"data,omitempty"`
}
type InvalidRegIDsResult struct {
Result
Data struct {
List []string `json:"list,omitempty"`
} `json:"data,omitempty"`
}
type AliasesOfRegIDResult struct {
Result
Data struct {
List []string `json:"list,omitempty"`
} `json:"data,omitempty"`
}
type TopicsOfRegIDResult struct {
Result
Data struct {
List []string `json:"list,omitempty"`
} `json:"data,omitempty"`
}