1 Star 0 Fork 0

ryanzl / shopeego

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
model-toppicks.go 3.36 KB
一键复制 编辑 原始数据 按行查看 历史
ryanzl 提交于 2020-11-25 11:12 . 修改http
package shopeego
type GetTopPicksListRequest struct {
// Partner ID is assigned upon registration is successful. Required for all requests.
PartnerID int64 `json:"partner_id,omitempty"`
// Shopee's unique identifier for a shop. Required for all requests.
ShopID int64 `json:"shopid,omitempty"`
// This is to indicate the timestamp of the request. Required for all requests.
Timestamp int `json:"timestamp,omitempty"`
}
type GetTopPicksListResponse struct {
// Collection list
Collections []GetTopPicksListResponseCollection `json:"collections,omitempty"`
}
type AddTopPicksRequest struct {
// Collection name. 1 to 24 characters.
Name string `json:"name,omitempty"`
// the list of item id. Allow 4 to 8 items in one collection.
ItemIDs []int `json:"item_i_ds,omitempty"`
// True or False
IsActivated bool `json:"is_activated,omitempty"`
// Partner ID is assigned upon registration is successful. Required for all requests.
PartnerID int64 `json:"partner_id,omitempty"`
// Shopee's unique identifier for a shop. Required for all requests.
ShopID int64 `json:"shopid,omitempty"`
// This is to indicate the timestamp of the request. Required for all requests.
Timestamp int `json:"timestamp,omitempty"`
}
type AddTopPicksResponse struct {
// Collection id
TopPicksID int64 `json:"top_picks_id,omitempty"`
// Whether it is activated or not.
IsActivated bool `json:"is_activated,omitempty"`
// Collection name
Name string `json:"name,omitempty"`
// Item list of the collection
Items []AddTopPicksResponseItem `json:"items,omitempty"`
}
type UpdateTopPicksRequest struct {
// Collection id
TopPicksID int64 `json:"top_picks_id,omitempty"`
// Collection name. 1 to 24 characters.
Name string `json:"name,omitempty"`
// The list of item id. Existed item_ids will overridden by the new_item_ids.
ItemIDs []int `json:"item_i_ds,omitempty"`
// True or False. If true, it will activate this collection and deactivate the original one.
IsActivated bool `json:"is_activated,omitempty"`
// Partner ID is assigned upon registration is successful. Required for all requests.
PartnerID int64 `json:"partner_id,omitempty"`
// Shopee's unique identifier for a shop. Required for all requests.
ShopID int64 `json:"shopid,omitempty"`
// This is to indicate the timestamp of the request. Required for all requests.
Timestamp int `json:"timestamp,omitempty"`
}
type UpdateTopPicksResponse struct {
// Collection id
TopPicksID int64 `json:"top_picks_id,omitempty"`
// Whether it is activated or not.
IsActivated bool `json:"is_activated,omitempty"`
// Collection name
Name string `json:"name,omitempty"`
// Item list of the collection
Items []UpdateTopPicksResponseItem `json:"items,omitempty"`
}
type DeleteTopPicksRequest struct {
// Collection id. Cannot delete an activated collection.
TopPicksID int64 `json:"top_picks_id,omitempty"`
// Partner ID is assigned upon registration is successful. Required for all requests.
PartnerID int64 `json:"partner_id,omitempty"`
// Shopee's unique identifier for a shop. Required for all requests.
ShopID int64 `json:"shopid,omitempty"`
// This is to indicate the timestamp of the request. Required for all requests.
Timestamp int `json:"timestamp,omitempty"`
}
type DeleteTopPicksResponse struct {
// Collection id
TopPicksID int64 `json:"top_picks_id,omitempty"`
}
1
https://gitee.com/ryanzl/shopeego.git
git@gitee.com:ryanzl/shopeego.git
ryanzl
shopeego
shopeego
master

搜索帮助