代码拉取完成,页面将自动刷新
package aikucun
import (
"bytes"
"encoding/json"
"net/http"
)
// OrderListAllRequest
type OrderListAllRequest struct {
ActivityId string `json:"activityid"`
Page int `json:"page"`
PageSize int `json:"pagesize"`
WithWaybill int `json:"withwaybill"`
}
// OrderListAllResponse
type OrderListAllResponse struct {
BaseResponse
// ...
}
// Method
func (req *OrderListAllRequest) Method() string {
return http.MethodGet
}
// Path
func (req *OrderListAllRequest) Path() string {
return "/api/v2/order/listall"
}
// Params
func (req *OrderListAllRequest) Params() map[string]interface{} {
m := make(map[string]interface{})
m["version"] = 2
m["activityid"] = req.ActivityId
m["page"] = req.Page
m["pagesize"] = req.PageSize
m["withwaybill"] = req.WithWaybill
return m
}
// NewOrderListAllRequest
func NewOrderListAllRequest() *OrderListAllRequest {
return new(OrderListAllRequest)
}
// String
func (resp *OrderListAllResponse) String() string {
buf := bytes.NewBuffer(nil)
err := json.NewEncoder(buf).Encode(resp)
if err != nil {
panic(err)
}
return buf.String()
}
// OrderListAll
func (client *Client) OrderListAll(request *OrderListAllRequest) (response *OrderListAllResponse, err error) {
response = &OrderListAllResponse{}
err = client.Do(request, response)
return
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。