-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoTaeBillGetAPIRequest.go
99 lines (84 loc) · 2.18 KB
/
TaobaoTaeBillGetAPIRequest.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
package bill
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
// TaobaotaebillgetAPIRequest tae查询单笔账单明细 API请求
// taobao.tae.bill.get
//
// 查询单笔账单明细
type TaobaotaebillgetAPIRequest struct {
model.Params
// 传入需要返回的字段
_fields []string
// 账单编号
_bid int64
// 账单编号
_id int64
// 虚拟账户科目编号
_accountId int64
}
// NewTaobaotaebillgetRequest 初始化TaobaotaebillgetAPIRequest对象
func NewTaobaotaebillgetRequest() *TaobaotaebillgetAPIRequest {
return &TaobaotaebillgetAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaotaebillgetAPIRequest) GetApiMethodName() string {
return "taobao.tae.bill.get"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaotaebillgetAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r TaobaotaebillgetAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetFields is Fields Setter
// 传入需要返回的字段
func (r *TaobaotaebillgetAPIRequest) SetFields(_fields []string) error {
r._fields = _fields
r.Set("fields", _fields)
return nil
}
// GetFields Fields Getter
func (r TaobaotaebillgetAPIRequest) GetFields() []string {
return r._fields
}
// SetBid is Bid Setter
// 账单编号
func (r *TaobaotaebillgetAPIRequest) SetBid(_bid int64) error {
r._bid = _bid
r.Set("bid", _bid)
return nil
}
// GetBid Bid Getter
func (r TaobaotaebillgetAPIRequest) GetBid() int64 {
return r._bid
}
// SetId is Id Setter
// 账单编号
func (r *TaobaotaebillgetAPIRequest) SetId(_id int64) error {
r._id = _id
r.Set("id", _id)
return nil
}
// GetId Id Getter
func (r TaobaotaebillgetAPIRequest) GetId() int64 {
return r._id
}
// SetAccountId is AccountId Setter
// 虚拟账户科目编号
func (r *TaobaotaebillgetAPIRequest) SetAccountId(_accountId int64) error {
r._accountId = _accountId
r.Set("account_id", _accountId)
return nil
}
// GetAccountId AccountId Getter
func (r TaobaotaebillgetAPIRequest) GetAccountId() int64 {
return r._accountId
}