-
Notifications
You must be signed in to change notification settings - Fork 9
/
AlibabaPurSupplierPorespcreateAPIRequest.go
52 lines (44 loc) · 1.32 KB
/
AlibabaPurSupplierPorespcreateAPIRequest.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"
)
/*
po反馈创建 API请求
alibaba.pur.supplier.porespcreate
PO反馈接口
*/
type AlibabaPurSupplierPorespcreateAPIRequest struct {
model.Params
// PO反馈信息
_poResponse []SupplierPoResponseDo
}
// 初始化AlibabaPurSupplierPorespcreateAPIRequest对象
func NewAlibabaPurSupplierPorespcreateRequest() *AlibabaPurSupplierPorespcreateAPIRequest{
return &AlibabaPurSupplierPorespcreateAPIRequest{
Params: model.NewParams(),
}
}
// IRequest interface 方法, 获取Api method
func (r AlibabaPurSupplierPorespcreateAPIRequest) GetApiMethodName() string {
return "alibaba.pur.supplier.porespcreate"
}
// IRequest interface 方法, 获取API参数
func (r AlibabaPurSupplierPorespcreateAPIRequest) GetApiParams() url.Values {
params := url.Values{}
for k, v := range r.GetRawParams() {
params.Set(k, v.String())
}
return params
}
// PoResponse Setter
// PO反馈信息
func (r *AlibabaPurSupplierPorespcreateAPIRequest) SetPoResponse(_poResponse []SupplierPoResponseDo) error {
r._poResponse = _poResponse
r.Set("po_response", _poResponse)
return nil
}
// PoResponse Getter
func (r AlibabaPurSupplierPorespcreateAPIRequest) GetPoResponse() []SupplierPoResponseDo {
return r._poResponse
}