1 Star 0 Fork 0

ryanzl / shopeego

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
model-push.go 1.72 KB
一键复制 编辑 原始数据 按行查看 历史
ryanzl 提交于 2020-11-25 11:12 . 修改http
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"`
}
1
https://gitee.com/ryanzl/shopeego.git
git@gitee.com:ryanzl/shopeego.git
ryanzl
shopeego
shopeego
master

搜索帮助