-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoAppstoreSubscribeGetAPIResponse.go
55 lines (46 loc) · 1.86 KB
/
TaobaoAppstoreSubscribeGetAPIResponse.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 user
import (
"encoding/xml"
"sync"
"github.com/bububa/opentaobao/model"
)
// TaobaoAppstoreSubscribeGetAPIResponse 查询appstore应用订购关系 API返回值
// taobao.appstore.subscribe.get
//
// 查询appstore应用订购关系(对于新上架的多版本应用,建议使用taobao.vas.subscribe.get)
type TaobaoAppstoreSubscribeGetAPIResponse struct {
model.CommonResponse
TaobaoAppstoreSubscribeGetAPIResponseModel
}
// Reset 清空结构体
func (m *TaobaoAppstoreSubscribeGetAPIResponse) Reset() {
(&m.CommonResponse).Reset()
(&m.TaobaoAppstoreSubscribeGetAPIResponseModel).Reset()
}
// TaobaoAppstoreSubscribeGetAPIResponseModel is 查询appstore应用订购关系 成功返回结果
type TaobaoAppstoreSubscribeGetAPIResponseModel struct {
XMLName xml.Name `xml:"appstore_subscribe_get_response"`
// 平台颁发的每次请求访问的唯一标识
RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
// 用户订购信息
UserSubscribe *UserSubscribe `json:"user_subscribe,omitempty" xml:"user_subscribe,omitempty"`
}
// Reset 清空结构体
func (m *TaobaoAppstoreSubscribeGetAPIResponseModel) Reset() {
m.RequestId = ""
m.UserSubscribe = nil
}
var poolTaobaoAppstoreSubscribeGetAPIResponse = sync.Pool{
New: func() any {
return new(TaobaoAppstoreSubscribeGetAPIResponse)
},
}
// GetTaobaoAppstoreSubscribeGetAPIResponse 从 sync.Pool 获取 TaobaoAppstoreSubscribeGetAPIResponse
func GetTaobaoAppstoreSubscribeGetAPIResponse() *TaobaoAppstoreSubscribeGetAPIResponse {
return poolTaobaoAppstoreSubscribeGetAPIResponse.Get().(*TaobaoAppstoreSubscribeGetAPIResponse)
}
// ReleaseTaobaoAppstoreSubscribeGetAPIResponse 将 TaobaoAppstoreSubscribeGetAPIResponse 保存到 sync.Pool
func ReleaseTaobaoAppstoreSubscribeGetAPIResponse(v *TaobaoAppstoreSubscribeGetAPIResponse) {
v.Reset()
poolTaobaoAppstoreSubscribeGetAPIResponse.Put(v)
}