github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/billing/describe_deals_by_cond.go (about) 1 package billing 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 time "time" 6 ) 7 8 // 查询订单数据 9 // https://cloud.tencent.com/document/api/555/19179 10 11 type DescribeDealsByCondRequest struct { 12 // 结束时间 13 EndTime time.Time `name:"EndTime"` 14 // 一页多少条数据,默认是20条,最大不超过1000 15 Limit int64 `name:"Limit"` 16 // 第多少页,从0开始,默认是0 17 Offset *int64 `name:"Offset,omitempty"` 18 // 订单号 19 OrderId *string `name:"OrderId,omitempty"` 20 // 区域 21 Region string `name:"Region"` 22 // 开始时间 23 StartTime time.Time `name:"StartTime"` 24 // 订单状态,默认为4(成功的订单)订单的状态1:未支付2:已支付3:发货中4:已发货5:发货失败6:已退款7:已关单8:订单过期9:订单已失效10:产品已失效11:代付拒绝12:支付中 25 Status *int64 `name:"Status,omitempty"` 26 } 27 28 func (req *DescribeDealsByCondRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeDealsByCondResponse, error) { 29 resp := &DescribeDealsByCondResponse{} 30 err := client.Request("billing", "DescribeDealsByCond", "2018-07-09").Do(req, resp) 31 return resp, err 32 } 33 34 type DescribeDealsByCondResponse struct { 35 github_com_morlay_goqcloud.TencentCloudBaseResponse 36 // 订单列表 37 Deals []*Deal `json:"Deals"` 38 // 订单总数 39 TotalCount int64 `json:"TotalCount"` 40 }