-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoJstSmsMessageShorturlQueryAPIResponse.go
71 lines (62 loc) · 2.38 KB
/
TaobaoJstSmsMessageShorturlQueryAPIResponse.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
package jst
import (
"encoding/xml"
"sync"
"github.com/bububa/opentaobao/model"
)
// TaobaoJstSmsMessageShorturlQueryAPIResponse 聚石塔短链信息查询 API返回值
// taobao.jst.sms.message.shorturl.query
//
// 聚石塔短链信息查询
type TaobaoJstSmsMessageShorturlQueryAPIResponse struct {
model.CommonResponse
TaobaoJstSmsMessageShorturlQueryAPIResponseModel
}
// Reset 清空结构体
func (m *TaobaoJstSmsMessageShorturlQueryAPIResponse) Reset() {
(&m.CommonResponse).Reset()
(&m.TaobaoJstSmsMessageShorturlQueryAPIResponseModel).Reset()
}
// TaobaoJstSmsMessageShorturlQueryAPIResponseModel is 聚石塔短链信息查询 成功返回结果
type TaobaoJstSmsMessageShorturlQueryAPIResponseModel struct {
XMLName xml.Name `xml:"jst_sms_message_shorturl_query_response"`
// 请求成功
RCode string `json:"r_code,omitempty" xml:"r_code,omitempty"`
// TOP请求ID
RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
// 短链名
ShortName string `json:"short_name,omitempty" xml:"short_name,omitempty"`
// 短链失效时间
LifeEnd string `json:"life_end,omitempty" xml:"life_end,omitempty"`
// 短链生成时间
LifeStart string `json:"life_start,omitempty" xml:"life_start,omitempty"`
// 查询短链信息失败
Message string `json:"message,omitempty" xml:"message,omitempty"`
// 成功
RSuccess bool `json:"r_success,omitempty" xml:"r_success,omitempty"`
}
// Reset 清空结构体
func (m *TaobaoJstSmsMessageShorturlQueryAPIResponseModel) Reset() {
m.RequestId = ""
m.RCode = ""
m.RequestId = ""
m.ShortName = ""
m.LifeEnd = ""
m.LifeStart = ""
m.Message = ""
m.RSuccess = false
}
var poolTaobaoJstSmsMessageShorturlQueryAPIResponse = sync.Pool{
New: func() any {
return new(TaobaoJstSmsMessageShorturlQueryAPIResponse)
},
}
// GetTaobaoJstSmsMessageShorturlQueryAPIResponse 从 sync.Pool 获取 TaobaoJstSmsMessageShorturlQueryAPIResponse
func GetTaobaoJstSmsMessageShorturlQueryAPIResponse() *TaobaoJstSmsMessageShorturlQueryAPIResponse {
return poolTaobaoJstSmsMessageShorturlQueryAPIResponse.Get().(*TaobaoJstSmsMessageShorturlQueryAPIResponse)
}
// ReleaseTaobaoJstSmsMessageShorturlQueryAPIResponse 将 TaobaoJstSmsMessageShorturlQueryAPIResponse 保存到 sync.Pool
func ReleaseTaobaoJstSmsMessageShorturlQueryAPIResponse(v *TaobaoJstSmsMessageShorturlQueryAPIResponse) {
v.Reset()
poolTaobaoJstSmsMessageShorturlQueryAPIResponse.Put(v)
}