-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoFeedflowItemAdgroupCreativePageAPIRequest.go
51 lines (43 loc) · 1.63 KB
/
TaobaoFeedflowItemAdgroupCreativePageAPIRequest.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"
)
// TaobaoFeedflowItemAdgroupCreativePageAPIRequest 信息流单元下查看创意 API请求
// taobao.feedflow.item.adgroup.creative.page
//
// 信息流单元下查看创意
type TaobaoFeedflowItemAdgroupCreativePageAPIRequest struct {
model.Params
// 绑定查询条件
_creativeBindQuery *CreativeBindQueryDto
}
// NewTaobaoFeedflowItemAdgroupCreativePageRequest 初始化TaobaoFeedflowItemAdgroupCreativePageAPIRequest对象
func NewTaobaoFeedflowItemAdgroupCreativePageRequest() *TaobaoFeedflowItemAdgroupCreativePageAPIRequest {
return &TaobaoFeedflowItemAdgroupCreativePageAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoFeedflowItemAdgroupCreativePageAPIRequest) GetApiMethodName() string {
return "taobao.feedflow.item.adgroup.creative.page"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoFeedflowItemAdgroupCreativePageAPIRequest) GetApiParams() url.Values {
params := url.Values{}
for k, v := range r.GetRawParams() {
params.Set(k, v.String())
}
return params
}
// SetCreativeBindQuery is CreativeBindQuery Setter
// 绑定查询条件
func (r *TaobaoFeedflowItemAdgroupCreativePageAPIRequest) SetCreativeBindQuery(_creativeBindQuery *CreativeBindQueryDto) error {
r._creativeBindQuery = _creativeBindQuery
r.Set("creative_bind_query", _creativeBindQuery)
return nil
}
// GetCreativeBindQuery CreativeBindQuery Getter
func (r TaobaoFeedflowItemAdgroupCreativePageAPIRequest) GetCreativeBindQuery() *CreativeBindQueryDto {
return r._creativeBindQuery
}