-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoFeedflowItemCreativeRpthourlistAPIRequest.go
51 lines (43 loc) · 1.57 KB
/
TaobaoFeedflowItemCreativeRpthourlistAPIRequest.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
package feedflow
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
// TaobaoFeedflowItemCreativeRpthourlistAPIRequest 超级推荐【商品推广】创意分时报表查询 API请求
// taobao.feedflow.item.creative.rpthourlist
//
// 创意分时数据查询,支持广告主查询最近90天内某一天的创意维度分时报表数据
type TaobaoFeedflowItemCreativeRpthourlistAPIRequest struct {
model.Params
// 查询参数
_rptQuery *RptQueryDto
}
// NewTaobaoFeedflowItemCreativeRpthourlistRequest 初始化TaobaoFeedflowItemCreativeRpthourlistAPIRequest对象
func NewTaobaoFeedflowItemCreativeRpthourlistRequest() *TaobaoFeedflowItemCreativeRpthourlistAPIRequest {
return &TaobaoFeedflowItemCreativeRpthourlistAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoFeedflowItemCreativeRpthourlistAPIRequest) GetApiMethodName() string {
return "taobao.feedflow.item.creative.rpthourlist"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoFeedflowItemCreativeRpthourlistAPIRequest) GetApiParams() url.Values {
params := url.Values{}
for k, v := range r.GetRawParams() {
params.Set(k, v.String())
}
return params
}
// SetRptQuery is RptQuery Setter
// 查询参数
func (r *TaobaoFeedflowItemCreativeRpthourlistAPIRequest) SetRptQuery(_rptQuery *RptQueryDto) error {
r._rptQuery = _rptQuery
r.Set("rpt_query", _rptQuery)
return nil
}
// GetRptQuery RptQuery Getter
func (r TaobaoFeedflowItemCreativeRpthourlistAPIRequest) GetRptQuery() *RptQueryDto {
return r._rptQuery
}