-
Notifications
You must be signed in to change notification settings - Fork 9
/
AlibabaCeresSupplierPoQuerydetailAPIRequest.go
52 lines (44 loc) · 1.29 KB
/
AlibabaCeresSupplierPoQuerydetailAPIRequest.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package pur
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
/*
采购供应商订单明细查询接口 API请求
alibaba.ceres.supplier.po.querydetail
采购供应商订单明细查询接口
*/
type AlibabaCeresSupplierPoQuerydetailAPIRequest struct {
model.Params
// 订单编号
_poNo string
}
// 初始化AlibabaCeresSupplierPoQuerydetailAPIRequest对象
func NewAlibabaCeresSupplierPoQuerydetailRequest() *AlibabaCeresSupplierPoQuerydetailAPIRequest{
return &AlibabaCeresSupplierPoQuerydetailAPIRequest{
Params: model.NewParams(),
}
}
// IRequest interface 方法, 获取Api method
func (r AlibabaCeresSupplierPoQuerydetailAPIRequest) GetApiMethodName() string {
return "alibaba.ceres.supplier.po.querydetail"
}
// IRequest interface 方法, 获取API参数
func (r AlibabaCeresSupplierPoQuerydetailAPIRequest) GetApiParams() url.Values {
params := url.Values{}
for k, v := range r.GetRawParams() {
params.Set(k, v.String())
}
return params
}
// PoNo Setter
// 订单编号
func (r *AlibabaCeresSupplierPoQuerydetailAPIRequest) SetPoNo(_poNo string) error {
r._poNo = _poNo
r.Set("po_no", _poNo)
return nil
}
// PoNo Getter
func (r AlibabaCeresSupplierPoQuerydetailAPIRequest) GetPoNo() string {
return r._poNo
}