-
Notifications
You must be signed in to change notification settings - Fork 12
/
AlibabaNazcaTokenFilesecretGetAPIResponse.go
67 lines (58 loc) · 2.23 KB
/
AlibabaNazcaTokenFilesecretGetAPIResponse.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
package nazca
import (
"encoding/xml"
"sync"
"github.com/bububa/opentaobao/model"
)
// AlibabaNazcaTokenFilesecretGetAPIResponse 获取文件秘钥 API返回值
// alibaba.nazca.token.filesecret.get
//
// 获取文件秘钥
type AlibabaNazcaTokenFilesecretGetAPIResponse struct {
model.CommonResponse
AlibabaNazcaTokenFilesecretGetAPIResponseModel
}
// Reset 清空结构体
func (m *AlibabaNazcaTokenFilesecretGetAPIResponse) Reset() {
(&m.CommonResponse).Reset()
(&m.AlibabaNazcaTokenFilesecretGetAPIResponseModel).Reset()
}
// AlibabaNazcaTokenFilesecretGetAPIResponseModel is 获取文件秘钥 成功返回结果
type AlibabaNazcaTokenFilesecretGetAPIResponseModel struct {
XMLName xml.Name `xml:"alibaba_nazca_token_filesecret_get_response"`
// 平台颁发的每次请求访问的唯一标识
RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
// error
Error string `json:"error,omitempty" xml:"error,omitempty"`
// message
Message string `json:"message,omitempty" xml:"message,omitempty"`
// 文件秘钥
RetValue string `json:"ret_value,omitempty" xml:"ret_value,omitempty"`
// 错误信息
SubErrorMessage string `json:"sub_error_message,omitempty" xml:"sub_error_message,omitempty"`
// 是否成功
IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}
// Reset 清空结构体
func (m *AlibabaNazcaTokenFilesecretGetAPIResponseModel) Reset() {
m.RequestId = ""
m.Error = ""
m.Message = ""
m.RetValue = ""
m.SubErrorMessage = ""
m.IsSuccess = false
}
var poolAlibabaNazcaTokenFilesecretGetAPIResponse = sync.Pool{
New: func() any {
return new(AlibabaNazcaTokenFilesecretGetAPIResponse)
},
}
// GetAlibabaNazcaTokenFilesecretGetAPIResponse 从 sync.Pool 获取 AlibabaNazcaTokenFilesecretGetAPIResponse
func GetAlibabaNazcaTokenFilesecretGetAPIResponse() *AlibabaNazcaTokenFilesecretGetAPIResponse {
return poolAlibabaNazcaTokenFilesecretGetAPIResponse.Get().(*AlibabaNazcaTokenFilesecretGetAPIResponse)
}
// ReleaseAlibabaNazcaTokenFilesecretGetAPIResponse 将 AlibabaNazcaTokenFilesecretGetAPIResponse 保存到 sync.Pool
func ReleaseAlibabaNazcaTokenFilesecretGetAPIResponse(v *AlibabaNazcaTokenFilesecretGetAPIResponse) {
v.Reset()
poolAlibabaNazcaTokenFilesecretGetAPIResponse.Put(v)
}