-
Notifications
You must be signed in to change notification settings - Fork 9
/
AlibabaAlscChudaTemplateSendAPIResponse.go
64 lines (55 loc) · 2.21 KB
/
AlibabaAlscChudaTemplateSendAPIResponse.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
package alsc
import (
"encoding/xml"
"sync"
"github.com/bububa/opentaobao/model"
)
// AlibabaAlscChudaTemplateSendAPIResponse 本地生活触达模板消息发送接口 API返回值
// alibaba.alsc.chuda.template.send
//
// 允许三方小程序通过该api发送本地生活触达消息
type AlibabaAlscChudaTemplateSendAPIResponse struct {
model.CommonResponse
AlibabaAlscChudaTemplateSendAPIResponseModel
}
// Reset 清空结构体
func (m *AlibabaAlscChudaTemplateSendAPIResponse) Reset() {
(&m.CommonResponse).Reset()
(&m.AlibabaAlscChudaTemplateSendAPIResponseModel).Reset()
}
// AlibabaAlscChudaTemplateSendAPIResponseModel is 本地生活触达模板消息发送接口 成功返回结果
type AlibabaAlscChudaTemplateSendAPIResponseModel struct {
XMLName xml.Name `xml:"alibaba_alsc_chuda_template_send_response"`
// 平台颁发的每次请求访问的唯一标识
RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
// 结果码,200表示成功
ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
// 描述信息
ResultDesc string `json:"result_desc,omitempty" xml:"result_desc,omitempty"`
// msgId
ResultObj int64 `json:"result_obj,omitempty" xml:"result_obj,omitempty"`
// 发送是否成功
IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}
// Reset 清空结构体
func (m *AlibabaAlscChudaTemplateSendAPIResponseModel) Reset() {
m.RequestId = ""
m.ResultCode = ""
m.ResultDesc = ""
m.ResultObj = 0
m.IsSuccess = false
}
var poolAlibabaAlscChudaTemplateSendAPIResponse = sync.Pool{
New: func() any {
return new(AlibabaAlscChudaTemplateSendAPIResponse)
},
}
// GetAlibabaAlscChudaTemplateSendAPIResponse 从 sync.Pool 获取 AlibabaAlscChudaTemplateSendAPIResponse
func GetAlibabaAlscChudaTemplateSendAPIResponse() *AlibabaAlscChudaTemplateSendAPIResponse {
return poolAlibabaAlscChudaTemplateSendAPIResponse.Get().(*AlibabaAlscChudaTemplateSendAPIResponse)
}
// ReleaseAlibabaAlscChudaTemplateSendAPIResponse 将 AlibabaAlscChudaTemplateSendAPIResponse 保存到 sync.Pool
func ReleaseAlibabaAlscChudaTemplateSendAPIResponse(v *AlibabaAlscChudaTemplateSendAPIResponse) {
v.Reset()
poolAlibabaAlscChudaTemplateSendAPIResponse.Put(v)
}