-
Notifications
You must be signed in to change notification settings - Fork 10
/
TaobaoOnebpDkxCampaignCampaignNoreportAPIRequest.go
94 lines (79 loc) · 3.47 KB
/
TaobaoOnebpDkxCampaignCampaignNoreportAPIRequest.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
package scs
import (
"net/url"
"sync"
"github.com/bububa/opentaobao/model"
)
// TaobaoOnebpDkxCampaignCampaignNoreportAPIRequest 获取场景计划的非报表数据 API请求
// taobao.onebp.dkx.campaign.campaign.noreport
//
// 获取场景计划的非报表数据。场景和bizCode的对应关系为:拉新快adStrategyDkx,上新快adStrategyShangXin ,货品加速adStrategyProductSpeed,入会快adStrategyRuHui,预热蓄水adStrategyYuRe,爆发收割adStrategyBaoFa
type TaobaoOnebpDkxCampaignCampaignNoreportAPIRequest struct {
model.Params
// 请求体
_apiServiceContext *ApiServiceContext
// 计划查询参数
_campaignQuery *CampaignQueryTopDto
}
// NewTaobaoOnebpDkxCampaignCampaignNoreportRequest 初始化TaobaoOnebpDkxCampaignCampaignNoreportAPIRequest对象
func NewTaobaoOnebpDkxCampaignCampaignNoreportRequest() *TaobaoOnebpDkxCampaignCampaignNoreportAPIRequest {
return &TaobaoOnebpDkxCampaignCampaignNoreportAPIRequest{
Params: model.NewParams(2),
}
}
// Reset IRequest interface 方法, 清空结构体
func (r *TaobaoOnebpDkxCampaignCampaignNoreportAPIRequest) Reset() {
r._apiServiceContext = nil
r._campaignQuery = nil
r.Params.ToZero()
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoOnebpDkxCampaignCampaignNoreportAPIRequest) GetApiMethodName() string {
return "taobao.onebp.dkx.campaign.campaign.noreport"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoOnebpDkxCampaignCampaignNoreportAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r TaobaoOnebpDkxCampaignCampaignNoreportAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetApiServiceContext is ApiServiceContext Setter
// 请求体
func (r *TaobaoOnebpDkxCampaignCampaignNoreportAPIRequest) SetApiServiceContext(_apiServiceContext *ApiServiceContext) error {
r._apiServiceContext = _apiServiceContext
r.Set("api_service_context", _apiServiceContext)
return nil
}
// GetApiServiceContext ApiServiceContext Getter
func (r TaobaoOnebpDkxCampaignCampaignNoreportAPIRequest) GetApiServiceContext() *ApiServiceContext {
return r._apiServiceContext
}
// SetCampaignQuery is CampaignQuery Setter
// 计划查询参数
func (r *TaobaoOnebpDkxCampaignCampaignNoreportAPIRequest) SetCampaignQuery(_campaignQuery *CampaignQueryTopDto) error {
r._campaignQuery = _campaignQuery
r.Set("campaign_query", _campaignQuery)
return nil
}
// GetCampaignQuery CampaignQuery Getter
func (r TaobaoOnebpDkxCampaignCampaignNoreportAPIRequest) GetCampaignQuery() *CampaignQueryTopDto {
return r._campaignQuery
}
var poolTaobaoOnebpDkxCampaignCampaignNoreportAPIRequest = sync.Pool{
New: func() any {
return NewTaobaoOnebpDkxCampaignCampaignNoreportRequest()
},
}
// GetTaobaoOnebpDkxCampaignCampaignNoreportRequest 从 sync.Pool 获取 TaobaoOnebpDkxCampaignCampaignNoreportAPIRequest
func GetTaobaoOnebpDkxCampaignCampaignNoreportAPIRequest() *TaobaoOnebpDkxCampaignCampaignNoreportAPIRequest {
return poolTaobaoOnebpDkxCampaignCampaignNoreportAPIRequest.Get().(*TaobaoOnebpDkxCampaignCampaignNoreportAPIRequest)
}
// ReleaseTaobaoOnebpDkxCampaignCampaignNoreportAPIRequest 将 TaobaoOnebpDkxCampaignCampaignNoreportAPIRequest 放入 sync.Pool
func ReleaseTaobaoOnebpDkxCampaignCampaignNoreportAPIRequest(v *TaobaoOnebpDkxCampaignCampaignNoreportAPIRequest) {
v.Reset()
poolTaobaoOnebpDkxCampaignCampaignNoreportAPIRequest.Put(v)
}