-
Notifications
You must be signed in to change notification settings - Fork 9
/
AliexpressSolutionBatchProductDeleteAPIResponse.go
52 lines (43 loc) · 2.01 KB
/
AliexpressSolutionBatchProductDeleteAPIResponse.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
package aesolution
import (
"encoding/xml"
"sync"
"github.com/bububa/opentaobao/model"
)
// AliexpressSolutionBatchProductDeleteAPIResponse aliexpress.solution.batch.product.delete API返回值
// aliexpress.solution.batch.product.delete
//
// Product delete API. Please note that there is no reverse way to retrieve the products which have been deleted. Use this API in cautious.
type AliexpressSolutionBatchProductDeleteAPIResponse struct {
model.CommonResponse
AliexpressSolutionBatchProductDeleteAPIResponseModel
}
// Reset 清空结构体
func (m *AliexpressSolutionBatchProductDeleteAPIResponse) Reset() {
(&m.CommonResponse).Reset()
(&m.AliexpressSolutionBatchProductDeleteAPIResponseModel).Reset()
}
// AliexpressSolutionBatchProductDeleteAPIResponseModel is aliexpress.solution.batch.product.delete 成功返回结果
type AliexpressSolutionBatchProductDeleteAPIResponseModel struct {
XMLName xml.Name `xml:"aliexpress_solution_batch_product_delete_response"`
// 平台颁发的每次请求访问的唯一标识
RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
}
// Reset 清空结构体
func (m *AliexpressSolutionBatchProductDeleteAPIResponseModel) Reset() {
m.RequestId = ""
}
var poolAliexpressSolutionBatchProductDeleteAPIResponse = sync.Pool{
New: func() any {
return new(AliexpressSolutionBatchProductDeleteAPIResponse)
},
}
// GetAliexpressSolutionBatchProductDeleteAPIResponse 从 sync.Pool 获取 AliexpressSolutionBatchProductDeleteAPIResponse
func GetAliexpressSolutionBatchProductDeleteAPIResponse() *AliexpressSolutionBatchProductDeleteAPIResponse {
return poolAliexpressSolutionBatchProductDeleteAPIResponse.Get().(*AliexpressSolutionBatchProductDeleteAPIResponse)
}
// ReleaseAliexpressSolutionBatchProductDeleteAPIResponse 将 AliexpressSolutionBatchProductDeleteAPIResponse 保存到 sync.Pool
func ReleaseAliexpressSolutionBatchProductDeleteAPIResponse(v *AliexpressSolutionBatchProductDeleteAPIResponse) {
v.Reset()
poolAliexpressSolutionBatchProductDeleteAPIResponse.Put(v)
}