-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoSimbaRptCampadgroupbaseGetAPIRequest.go
174 lines (149 loc) · 5.15 KB
/
TaobaoSimbaRptCampadgroupbaseGetAPIRequest.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
package simba
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
// TaobaoSimbaRptCampadgroupbaseGetAPIRequest 推广计划下的推广组报表基础数据查询(只有汇总数据,无分类类型) API请求
// taobao.simba.rpt.campadgroupbase.get
//
// 推广计划下的推广组报表基础数据查询(只有汇总数据,无分类类型)
type TaobaoSimbaRptCampadgroupbaseGetAPIRequest struct {
model.Params
// 权限验证信息
_subwayToken string
// 昵称
_nick string
// 开始日期,格式yyyy-mm-dd
_startTime string
// 结束日期,格式yyyy-mm-dd
_endTime string
// 数据来源(PC站内:1,PC站外:2,无线站内:4,无线站外 : 5, 汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如1,2
_source string
// 报表类型(搜索:SEARCH,类目出价:CAT, 定向投放:NOSEARCH汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如:SEARCH,CAT
_searchType string
// 查询推广计划id
_campaignId int64
// 页码
_pageNo int64
// 每页大小
_pageSize int64
}
// NewTaobaoSimbaRptCampadgroupbaseGetRequest 初始化TaobaoSimbaRptCampadgroupbaseGetAPIRequest对象
func NewTaobaoSimbaRptCampadgroupbaseGetRequest() *TaobaoSimbaRptCampadgroupbaseGetAPIRequest {
return &TaobaoSimbaRptCampadgroupbaseGetAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoSimbaRptCampadgroupbaseGetAPIRequest) GetApiMethodName() string {
return "taobao.simba.rpt.campadgroupbase.get"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoSimbaRptCampadgroupbaseGetAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r TaobaoSimbaRptCampadgroupbaseGetAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetSubwayToken is SubwayToken Setter
// 权限验证信息
func (r *TaobaoSimbaRptCampadgroupbaseGetAPIRequest) SetSubwayToken(_subwayToken string) error {
r._subwayToken = _subwayToken
r.Set("subway_token", _subwayToken)
return nil
}
// GetSubwayToken SubwayToken Getter
func (r TaobaoSimbaRptCampadgroupbaseGetAPIRequest) GetSubwayToken() string {
return r._subwayToken
}
// SetNick is Nick Setter
// 昵称
func (r *TaobaoSimbaRptCampadgroupbaseGetAPIRequest) SetNick(_nick string) error {
r._nick = _nick
r.Set("nick", _nick)
return nil
}
// GetNick Nick Getter
func (r TaobaoSimbaRptCampadgroupbaseGetAPIRequest) GetNick() string {
return r._nick
}
// SetStartTime is StartTime Setter
// 开始日期,格式yyyy-mm-dd
func (r *TaobaoSimbaRptCampadgroupbaseGetAPIRequest) SetStartTime(_startTime string) error {
r._startTime = _startTime
r.Set("start_time", _startTime)
return nil
}
// GetStartTime StartTime Getter
func (r TaobaoSimbaRptCampadgroupbaseGetAPIRequest) GetStartTime() string {
return r._startTime
}
// SetEndTime is EndTime Setter
// 结束日期,格式yyyy-mm-dd
func (r *TaobaoSimbaRptCampadgroupbaseGetAPIRequest) SetEndTime(_endTime string) error {
r._endTime = _endTime
r.Set("end_time", _endTime)
return nil
}
// GetEndTime EndTime Getter
func (r TaobaoSimbaRptCampadgroupbaseGetAPIRequest) GetEndTime() string {
return r._endTime
}
// SetSource is Source Setter
// 数据来源(PC站内:1,PC站外:2,无线站内:4,无线站外 : 5, 汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如1,2
func (r *TaobaoSimbaRptCampadgroupbaseGetAPIRequest) SetSource(_source string) error {
r._source = _source
r.Set("source", _source)
return nil
}
// GetSource Source Getter
func (r TaobaoSimbaRptCampadgroupbaseGetAPIRequest) GetSource() string {
return r._source
}
// SetSearchType is SearchType Setter
// 报表类型(搜索:SEARCH,类目出价:CAT, 定向投放:NOSEARCH汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如:SEARCH,CAT
func (r *TaobaoSimbaRptCampadgroupbaseGetAPIRequest) SetSearchType(_searchType string) error {
r._searchType = _searchType
r.Set("search_type", _searchType)
return nil
}
// GetSearchType SearchType Getter
func (r TaobaoSimbaRptCampadgroupbaseGetAPIRequest) GetSearchType() string {
return r._searchType
}
// SetCampaignId is CampaignId Setter
// 查询推广计划id
func (r *TaobaoSimbaRptCampadgroupbaseGetAPIRequest) SetCampaignId(_campaignId int64) error {
r._campaignId = _campaignId
r.Set("campaign_id", _campaignId)
return nil
}
// GetCampaignId CampaignId Getter
func (r TaobaoSimbaRptCampadgroupbaseGetAPIRequest) GetCampaignId() int64 {
return r._campaignId
}
// SetPageNo is PageNo Setter
// 页码
func (r *TaobaoSimbaRptCampadgroupbaseGetAPIRequest) SetPageNo(_pageNo int64) error {
r._pageNo = _pageNo
r.Set("page_no", _pageNo)
return nil
}
// GetPageNo PageNo Getter
func (r TaobaoSimbaRptCampadgroupbaseGetAPIRequest) GetPageNo() int64 {
return r._pageNo
}
// SetPageSize is PageSize Setter
// 每页大小
func (r *TaobaoSimbaRptCampadgroupbaseGetAPIRequest) SetPageSize(_pageSize int64) error {
r._pageSize = _pageSize
r.Set("page_size", _pageSize)
return nil
}
// GetPageSize PageSize Getter
func (r TaobaoSimbaRptCampadgroupbaseGetAPIRequest) GetPageSize() int64 {
return r._pageSize
}