You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-library/service/pinduoduo/sort_type.go

23 lines
447 B

package pinduoduo
type GetSortTypeListResponse struct {
SortType int64 `json:"sort_type"`
SortName string `json:"sort_name"`
}
func (c *Client) GetSortTypeList() []GetSortTypeListResponse {
var lists []GetSortTypeListResponse
lists = append(lists, GetSortTypeListResponse{
SortType: 1,
SortName: "实时热销榜",
})
lists = append(lists, GetSortTypeListResponse{
SortType: 2,
SortName: "实时收益榜",
})
return lists
}