/
TaobaoMiniappTemplateUpdateappAPIResponse.go
76 lines (67 loc) · 2.73 KB
/
TaobaoMiniappTemplateUpdateappAPIResponse.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package miniappopen
import (
"encoding/xml"
"sync"
"github.com/bububa/opentaobao/model"
)
// TaobaoMiniappTemplateUpdateappAPIResponse 更新实例化应用 API返回值
// taobao.miniapp.template.updateapp
//
// 商家应用c端模板实例化小程序更新,生成新的版本,但不会自动上线新版本
type TaobaoMiniappTemplateUpdateappAPIResponse struct {
model.CommonResponse
TaobaoMiniappTemplateUpdateappAPIResponseModel
}
// Reset 清空结构体
func (m *TaobaoMiniappTemplateUpdateappAPIResponse) Reset() {
(&m.CommonResponse).Reset()
(&m.TaobaoMiniappTemplateUpdateappAPIResponseModel).Reset()
}
// TaobaoMiniappTemplateUpdateappAPIResponseModel is 更新实例化应用 成功返回结果
type TaobaoMiniappTemplateUpdateappAPIResponseModel struct {
XMLName xml.Name `xml:"miniapp_template_updateapp_response"`
// 平台颁发的每次请求访问的唯一标识
RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
// 小程序描述
AppDescription string `json:"app_description,omitempty" xml:"app_description,omitempty"`
// 小程序icon
AppIcon string `json:"app_icon,omitempty" xml:"app_icon,omitempty"`
// 小程序名称
AppName string `json:"app_name,omitempty" xml:"app_name,omitempty"`
// top appkey
Appkey string `json:"appkey,omitempty" xml:"appkey,omitempty"`
// 小程序app_id
AppId string `json:"app_id,omitempty" xml:"app_id,omitempty"`
// 当前新生成的预览版本号
AppVersion string `json:"app_version,omitempty" xml:"app_version,omitempty"`
// 当前新生成的预览版本的链接,仅当前商家有权限预览。
PreViewUrl string `json:"pre_view_url,omitempty" xml:"pre_view_url,omitempty"`
// 小程序简称
AppAlias string `json:"app_alias,omitempty" xml:"app_alias,omitempty"`
}
// Reset 清空结构体
func (m *TaobaoMiniappTemplateUpdateappAPIResponseModel) Reset() {
m.RequestId = ""
m.AppDescription = ""
m.AppIcon = ""
m.AppName = ""
m.Appkey = ""
m.AppId = ""
m.AppVersion = ""
m.PreViewUrl = ""
m.AppAlias = ""
}
var poolTaobaoMiniappTemplateUpdateappAPIResponse = sync.Pool{
New: func() any {
return new(TaobaoMiniappTemplateUpdateappAPIResponse)
},
}
// GetTaobaoMiniappTemplateUpdateappAPIResponse 从 sync.Pool 获取 TaobaoMiniappTemplateUpdateappAPIResponse
func GetTaobaoMiniappTemplateUpdateappAPIResponse() *TaobaoMiniappTemplateUpdateappAPIResponse {
return poolTaobaoMiniappTemplateUpdateappAPIResponse.Get().(*TaobaoMiniappTemplateUpdateappAPIResponse)
}
// ReleaseTaobaoMiniappTemplateUpdateappAPIResponse 将 TaobaoMiniappTemplateUpdateappAPIResponse 保存到 sync.Pool
func ReleaseTaobaoMiniappTemplateUpdateappAPIResponse(v *TaobaoMiniappTemplateUpdateappAPIResponse) {
v.Reset()
poolTaobaoMiniappTemplateUpdateappAPIResponse.Put(v)
}