/
AlibabaAlihealthImriskQueryAPIResponse.go
64 lines (55 loc) · 2.09 KB
/
AlibabaAlihealthImriskQueryAPIResponse.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 alihealth2
import (
"encoding/xml"
"sync"
"github.com/bububa/opentaobao/model"
)
// AlibabaAlihealthImriskQueryAPIResponse 问诊质控接口 API返回值
// alibaba.alihealth.imrisk.query
//
// 阿里健康的问诊质控接口
type AlibabaAlihealthImriskQueryAPIResponse struct {
model.CommonResponse
AlibabaAlihealthImriskQueryAPIResponseModel
}
// Reset 清空结构体
func (m *AlibabaAlihealthImriskQueryAPIResponse) Reset() {
(&m.CommonResponse).Reset()
(&m.AlibabaAlihealthImriskQueryAPIResponseModel).Reset()
}
// AlibabaAlihealthImriskQueryAPIResponseModel is 问诊质控接口 成功返回结果
type AlibabaAlihealthImriskQueryAPIResponseModel struct {
XMLName xml.Name `xml:"alibaba_alihealth_imrisk_query_response"`
// 平台颁发的每次请求访问的唯一标识
RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
// 返回结果
Data []IMRule `json:"data,omitempty" xml:"data>im_rule,omitempty"`
// 错误码
TheErrCode string `json:"the_err_code,omitempty" xml:"the_err_code,omitempty"`
// 错误信息
TheErrMsg string `json:"the_err_msg,omitempty" xml:"the_err_msg,omitempty"`
// 是否成功
IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}
// Reset 清空结构体
func (m *AlibabaAlihealthImriskQueryAPIResponseModel) Reset() {
m.RequestId = ""
m.Data = m.Data[:0]
m.TheErrCode = ""
m.TheErrMsg = ""
m.IsSuccess = false
}
var poolAlibabaAlihealthImriskQueryAPIResponse = sync.Pool{
New: func() any {
return new(AlibabaAlihealthImriskQueryAPIResponse)
},
}
// GetAlibabaAlihealthImriskQueryAPIResponse 从 sync.Pool 获取 AlibabaAlihealthImriskQueryAPIResponse
func GetAlibabaAlihealthImriskQueryAPIResponse() *AlibabaAlihealthImriskQueryAPIResponse {
return poolAlibabaAlihealthImriskQueryAPIResponse.Get().(*AlibabaAlihealthImriskQueryAPIResponse)
}
// ReleaseAlibabaAlihealthImriskQueryAPIResponse 将 AlibabaAlihealthImriskQueryAPIResponse 保存到 sync.Pool
func ReleaseAlibabaAlihealthImriskQueryAPIResponse(v *AlibabaAlihealthImriskQueryAPIResponse) {
v.Reset()
poolAlibabaAlihealthImriskQueryAPIResponse.Put(v)
}