This repository has been archived by the owner on May 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
model-push.go
41 lines (37 loc) · 1.72 KB
/
model-push.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
package shopeego
type GetPushConfigRequest struct {
// Partner ID is assigned upon registration is successful. Required for all requests.
PartnerID int64 `json:"partner_id,omitempty"`
// This is to indicate the timestamp of the request. Required for all requests.
Timestamp int `json:"timestamp,omitempty"`
}
type GetPushConfigResponse struct {
// The callback url of push mechanism.
CallbackURL string `json:"callback_url,omitempty"`
// The shutdown time caused by low successful rate of push mechanism.
ShutTime int64 `json:"shut_time,omitempty"`
//
DeatiledConfig GetPushConfigResponseDeatiledConfig `json:"detailed_config,omitempty"`
// Use this filed to set shops that need to be blocked.
BlockedShopID []int64 `json:"blocked_shopid,omitempty"`
// The identifier for an API request for error tracking
RequestID string `json:"request_id,omitempty"`
}
type SetPushConfigRequest struct {
// The callback url of push mechanism.
CallbackURL string `json:"callback_url,omitempty"`
// The shutdown time caused by low successful rate of push mechanism.
ShutTime int `json:"shut_time,omitempty"`
//
DeatiledConfig GetPushConfigResponseDeatiledConfig `json:"detailed_config,omitempty"`
// Use this filed to set shops that need to be blocked.
BlockedShopID []int64 `json:"blocked_shopid,omitempty"`
// Partner ID is assigned upon registration is successful. Required for all requests.
PartnerID int64 `json:"partner_id,omitempty"`
}
type SetPushConfigResponse struct {
// Use this field to indicate whether the configuration is set successfully.
Status string `json:"status,omitempty"`
// The identifier for an API request for error tracking.
RequestID string `json:"request_id,omitempty"`
}