代码拉取完成,页面将自动刷新
package aikucun
import (
"bytes"
"encoding/json"
"net/http"
)
// OrderListNoRequest
type OrderListNoRequest struct {
ActivityId string `json:"activityid"`
Page int `json:"page"`
PageSize int `json:"pagesize"`
FilterDeliver int `json:"filterDeliver"`
}
// OrderListNoResponse
type OrderListNoResponse struct {
BaseResponse
Data OrderListNoData `json:"data"`
}
// OrderListNoData
type OrderListNoData struct {
TotalRecord int `json:"totalrecord"`
TotalPage int `json:"totalpage"`
Page int `json:"page"`
PageSize int `json:"pagesize"`
Source string `json:"source"`
ActivityId string `json:"activityid"`
List []OrderListNoItem `json:"list"`
}
// OrderListNoItem
type OrderListNoItem struct {
AdorderId string `json:"adorderid"`
RealSettlementpriceAmount int `json:"realSettlementpriceAmount"`
Count int `json:"count"`
OrderStatus int `json:"orderstatus"`
LogisticsStatus int `json:"logisticsstatus"`
OrderTime string `json:"ordertime"`
PayTime string `json:"paytime"`
}
// Method
func (req *OrderListNoRequest) Method() string {
return http.MethodGet
}
// Path
func (req *OrderListNoRequest) Path() string {
return "/api/v2/order/listno"
}
// Params
func (req *OrderListNoRequest) Params() map[string]interface{} {
m := make(map[string]interface{})
m["activityid"] = req.ActivityId
m["page"] = req.Page
m["pagesize"] = req.PageSize
m["filterDeliver"] = req.FilterDeliver
return m
}
// NewOrderListNoRequest
func NewOrderListNoRequest() *OrderListNoRequest {
return new(OrderListNoRequest)
}
// String
func (resp *OrderListNoResponse) String() string {
buf := bytes.NewBuffer(nil)
err := json.NewEncoder(buf).Encode(resp)
if err != nil {
panic(err)
}
return buf.String()
}
// OrderListNo
func (client *Client) OrderListNo(request *OrderListNoRequest) (response *OrderListNoResponse, err error) {
response = &OrderListNoResponse{}
err = client.Do(request, response)
return
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。