-
Notifications
You must be signed in to change notification settings - Fork 12
/
AlibabaInteractSensorTradeBuyAPIResponse.go
52 lines (43 loc) · 1.7 KB
/
AlibabaInteractSensorTradeBuyAPIResponse.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 mtopopen
import (
"encoding/xml"
"sync"
"github.com/bububa/opentaobao/model"
)
// AlibabaInteractSensorTradeBuyAPIResponse 手淘下单能力开放 API返回值
// alibaba.interact.sensor.trade.buy
//
// 交易流程鉴权
type AlibabaInteractSensorTradeBuyAPIResponse struct {
model.CommonResponse
AlibabaInteractSensorTradeBuyAPIResponseModel
}
// Reset 清空结构体
func (m *AlibabaInteractSensorTradeBuyAPIResponse) Reset() {
(&m.CommonResponse).Reset()
(&m.AlibabaInteractSensorTradeBuyAPIResponseModel).Reset()
}
// AlibabaInteractSensorTradeBuyAPIResponseModel is 手淘下单能力开放 成功返回结果
type AlibabaInteractSensorTradeBuyAPIResponseModel struct {
XMLName xml.Name `xml:"alibaba_interact_sensor_trade_buy_response"`
// 平台颁发的每次请求访问的唯一标识
RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
}
// Reset 清空结构体
func (m *AlibabaInteractSensorTradeBuyAPIResponseModel) Reset() {
m.RequestId = ""
}
var poolAlibabaInteractSensorTradeBuyAPIResponse = sync.Pool{
New: func() any {
return new(AlibabaInteractSensorTradeBuyAPIResponse)
},
}
// GetAlibabaInteractSensorTradeBuyAPIResponse 从 sync.Pool 获取 AlibabaInteractSensorTradeBuyAPIResponse
func GetAlibabaInteractSensorTradeBuyAPIResponse() *AlibabaInteractSensorTradeBuyAPIResponse {
return poolAlibabaInteractSensorTradeBuyAPIResponse.Get().(*AlibabaInteractSensorTradeBuyAPIResponse)
}
// ReleaseAlibabaInteractSensorTradeBuyAPIResponse 将 AlibabaInteractSensorTradeBuyAPIResponse 保存到 sync.Pool
func ReleaseAlibabaInteractSensorTradeBuyAPIResponse(v *AlibabaInteractSensorTradeBuyAPIResponse) {
v.Reset()
poolAlibabaInteractSensorTradeBuyAPIResponse.Put(v)
}