-
Notifications
You must be signed in to change notification settings - Fork 10
/
TaobaoUniversalbpReportQueryAccountAPIRequest.go
69 lines (58 loc) · 2.33 KB
/
TaobaoUniversalbpReportQueryAccountAPIRequest.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
package simba
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
// TaobaoUniversalbpReportQueryAccountAPIRequest 账户报表查询 API请求
// taobao.universalbp.report.query.account
//
// 账户报表查询
type TaobaoUniversalbpReportQueryAccountAPIRequest struct {
model.Params
// topServiceContext
_topServiceContext *TopServiceContext
// topAccountReportQueryVO
_topAccountReportQueryVO *TopAccountReportQueryVo
}
// NewTaobaoUniversalbpReportQueryAccountRequest 初始化TaobaoUniversalbpReportQueryAccountAPIRequest对象
func NewTaobaoUniversalbpReportQueryAccountRequest() *TaobaoUniversalbpReportQueryAccountAPIRequest {
return &TaobaoUniversalbpReportQueryAccountAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoUniversalbpReportQueryAccountAPIRequest) GetApiMethodName() string {
return "taobao.universalbp.report.query.account"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoUniversalbpReportQueryAccountAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r TaobaoUniversalbpReportQueryAccountAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetTopServiceContext is TopServiceContext Setter
// topServiceContext
func (r *TaobaoUniversalbpReportQueryAccountAPIRequest) SetTopServiceContext(_topServiceContext *TopServiceContext) error {
r._topServiceContext = _topServiceContext
r.Set("top_service_context", _topServiceContext)
return nil
}
// GetTopServiceContext TopServiceContext Getter
func (r TaobaoUniversalbpReportQueryAccountAPIRequest) GetTopServiceContext() *TopServiceContext {
return r._topServiceContext
}
// SetTopAccountReportQueryVO is TopAccountReportQueryVO Setter
// topAccountReportQueryVO
func (r *TaobaoUniversalbpReportQueryAccountAPIRequest) SetTopAccountReportQueryVO(_topAccountReportQueryVO *TopAccountReportQueryVo) error {
r._topAccountReportQueryVO = _topAccountReportQueryVO
r.Set("top_account_report_query_v_o", _topAccountReportQueryVO)
return nil
}
// GetTopAccountReportQueryVO TopAccountReportQueryVO Getter
func (r TaobaoUniversalbpReportQueryAccountAPIRequest) GetTopAccountReportQueryVO() *TopAccountReportQueryVo {
return r._topAccountReportQueryVO
}