-
Notifications
You must be signed in to change notification settings - Fork 9
/
AlibabaImapPvAutofillAPIResponse.go
55 lines (46 loc) · 1.77 KB
/
AlibabaImapPvAutofillAPIResponse.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
package category
import (
"encoding/xml"
"sync"
"github.com/bububa/opentaobao/model"
)
// AlibabaImapPvAutofillAPIResponse 属性回填接口 API返回值
// alibaba.imap.pv.autofill
//
// 根据用户传入的标题、目标渠道id,目标渠道叶子类目,预测其对应的pv信息,返回给业务方,供其自动填充属性项属性值信息
type AlibabaImapPvAutofillAPIResponse struct {
model.CommonResponse
AlibabaImapPvAutofillAPIResponseModel
}
// Reset 清空结构体
func (m *AlibabaImapPvAutofillAPIResponse) Reset() {
(&m.CommonResponse).Reset()
(&m.AlibabaImapPvAutofillAPIResponseModel).Reset()
}
// AlibabaImapPvAutofillAPIResponseModel is 属性回填接口 成功返回结果
type AlibabaImapPvAutofillAPIResponseModel struct {
XMLName xml.Name `xml:"alibaba_imap_pv_autofill_response"`
// 平台颁发的每次请求访问的唯一标识
RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
// imap通用返回DO
Result *TopImapResultDo `json:"result,omitempty" xml:"result,omitempty"`
}
// Reset 清空结构体
func (m *AlibabaImapPvAutofillAPIResponseModel) Reset() {
m.RequestId = ""
m.Result = nil
}
var poolAlibabaImapPvAutofillAPIResponse = sync.Pool{
New: func() any {
return new(AlibabaImapPvAutofillAPIResponse)
},
}
// GetAlibabaImapPvAutofillAPIResponse 从 sync.Pool 获取 AlibabaImapPvAutofillAPIResponse
func GetAlibabaImapPvAutofillAPIResponse() *AlibabaImapPvAutofillAPIResponse {
return poolAlibabaImapPvAutofillAPIResponse.Get().(*AlibabaImapPvAutofillAPIResponse)
}
// ReleaseAlibabaImapPvAutofillAPIResponse 将 AlibabaImapPvAutofillAPIResponse 保存到 sync.Pool
func ReleaseAlibabaImapPvAutofillAPIResponse(v *AlibabaImapPvAutofillAPIResponse) {
v.Reset()
poolAlibabaImapPvAutofillAPIResponse.Put(v)
}