-
Notifications
You must be signed in to change notification settings - Fork 1
/
result.go
83 lines (73 loc) · 2 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
package xmpush
type Result struct {
Result string `json:"result"`
TraceId 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 Stat 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"`
}
type StatsResult struct {
Result
Data struct {
Data []Stat `json:"data,omitempty"`
} `json:"data,omitempty"`
}
type Status 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"`
}
type SingleStatusResult struct {
Result
Data struct {
Data Status `json:"data,omitempty"`
} `json:"data,omitempty"`
}
type BatchStatusResult struct {
Result
Data struct {
Data []Status `json:"data,omitempty"`
} `json:"data,omitempty"`
}
type InvalidRegIdsResult struct {
Result
Data struct {
List []string `json:"list,omitempty"`
} `json:"data,omitempty"`
}
type RegIdAalisResult struct {
Result
Data struct {
List []string `json:"list,omitempty"`
} `json:"data,omitempty"`
}
type RegIdTopicResult struct {
Result
Data struct {
List []string `json:"list,omitempty"`
} `json:"data,omitempty"`
}