-
Notifications
You must be signed in to change notification settings - Fork 10
/
TaobaoOnebpDkxReportReportAccountOfflineAPIResponse.go
57 lines (48 loc) · 2.41 KB
/
TaobaoOnebpDkxReportReportAccountOfflineAPIResponse.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
package scs
import (
"encoding/xml"
"sync"
"github.com/bububa/opentaobao/model"
)
// TaobaoOnebpDkxReportReportAccountOfflineAPIResponse 获取账户历史报表 API返回值
// taobao.onebp.dkx.report.report.account.offline
//
// 获取账户历史报表
// 入参1示例:{"biz_code":"adStrategyDkx"}
// 入参2示例:{ "start_time": "2021-07-24", "effect": 15, "end_time": "2021-08-21", "strategy_scene":true, "unify_type":"kuan", "bizCode":"adStrategyDkx" }
type TaobaoOnebpDkxReportReportAccountOfflineAPIResponse struct {
model.CommonResponse
TaobaoOnebpDkxReportReportAccountOfflineAPIResponseModel
}
// Reset 清空结构体
func (m *TaobaoOnebpDkxReportReportAccountOfflineAPIResponse) Reset() {
(&m.CommonResponse).Reset()
(&m.TaobaoOnebpDkxReportReportAccountOfflineAPIResponseModel).Reset()
}
// TaobaoOnebpDkxReportReportAccountOfflineAPIResponseModel is 获取账户历史报表 成功返回结果
type TaobaoOnebpDkxReportReportAccountOfflineAPIResponseModel struct {
XMLName xml.Name `xml:"onebp_dkx_report_report_account_offline_response"`
// 平台颁发的每次请求访问的唯一标识
RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
// 结果体
Result *TaobaoOnebpDkxReportReportAccountOfflineResultDto `json:"result,omitempty" xml:"result,omitempty"`
}
// Reset 清空结构体
func (m *TaobaoOnebpDkxReportReportAccountOfflineAPIResponseModel) Reset() {
m.RequestId = ""
m.Result = nil
}
var poolTaobaoOnebpDkxReportReportAccountOfflineAPIResponse = sync.Pool{
New: func() any {
return new(TaobaoOnebpDkxReportReportAccountOfflineAPIResponse)
},
}
// GetTaobaoOnebpDkxReportReportAccountOfflineAPIResponse 从 sync.Pool 获取 TaobaoOnebpDkxReportReportAccountOfflineAPIResponse
func GetTaobaoOnebpDkxReportReportAccountOfflineAPIResponse() *TaobaoOnebpDkxReportReportAccountOfflineAPIResponse {
return poolTaobaoOnebpDkxReportReportAccountOfflineAPIResponse.Get().(*TaobaoOnebpDkxReportReportAccountOfflineAPIResponse)
}
// ReleaseTaobaoOnebpDkxReportReportAccountOfflineAPIResponse 将 TaobaoOnebpDkxReportReportAccountOfflineAPIResponse 保存到 sync.Pool
func ReleaseTaobaoOnebpDkxReportReportAccountOfflineAPIResponse(v *TaobaoOnebpDkxReportReportAccountOfflineAPIResponse) {
v.Reset()
poolTaobaoOnebpDkxReportReportAccountOfflineAPIResponse.Put(v)
}