-
Notifications
You must be signed in to change notification settings - Fork 9
/
AlibabaAlihealthMdeerScienceSynarticleAPIResponse.go
61 lines (52 loc) · 2.24 KB
/
AlibabaAlihealthMdeerScienceSynarticleAPIResponse.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
package alihealthmdeer
import (
"encoding/xml"
"sync"
"github.com/bububa/opentaobao/model"
)
// AlibabaAlihealthMdeerScienceSynarticleAPIResponse 医知鹿文章同步【保存/更新】 API返回值
// alibaba.alihealth.mdeer.science.synarticle
//
// 文章同步【保存/更新】
type AlibabaAlihealthMdeerScienceSynarticleAPIResponse struct {
model.CommonResponse
AlibabaAlihealthMdeerScienceSynarticleAPIResponseModel
}
// Reset 清空结构体
func (m *AlibabaAlihealthMdeerScienceSynarticleAPIResponse) Reset() {
(&m.CommonResponse).Reset()
(&m.AlibabaAlihealthMdeerScienceSynarticleAPIResponseModel).Reset()
}
// AlibabaAlihealthMdeerScienceSynarticleAPIResponseModel is 医知鹿文章同步【保存/更新】 成功返回结果
type AlibabaAlihealthMdeerScienceSynarticleAPIResponseModel struct {
XMLName xml.Name `xml:"alibaba_alihealth_mdeer_science_synarticle_response"`
// 平台颁发的每次请求访问的唯一标识
RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
// 返回信息
MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"`
// 信息code
MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
// 返回值
Model bool `json:"model,omitempty" xml:"model,omitempty"`
}
// Reset 清空结构体
func (m *AlibabaAlihealthMdeerScienceSynarticleAPIResponseModel) Reset() {
m.RequestId = ""
m.MsgInfo = ""
m.MsgCode = ""
m.Model = false
}
var poolAlibabaAlihealthMdeerScienceSynarticleAPIResponse = sync.Pool{
New: func() any {
return new(AlibabaAlihealthMdeerScienceSynarticleAPIResponse)
},
}
// GetAlibabaAlihealthMdeerScienceSynarticleAPIResponse 从 sync.Pool 获取 AlibabaAlihealthMdeerScienceSynarticleAPIResponse
func GetAlibabaAlihealthMdeerScienceSynarticleAPIResponse() *AlibabaAlihealthMdeerScienceSynarticleAPIResponse {
return poolAlibabaAlihealthMdeerScienceSynarticleAPIResponse.Get().(*AlibabaAlihealthMdeerScienceSynarticleAPIResponse)
}
// ReleaseAlibabaAlihealthMdeerScienceSynarticleAPIResponse 将 AlibabaAlihealthMdeerScienceSynarticleAPIResponse 保存到 sync.Pool
func ReleaseAlibabaAlihealthMdeerScienceSynarticleAPIResponse(v *AlibabaAlihealthMdeerScienceSynarticleAPIResponse) {
v.Reset()
poolAlibabaAlihealthMdeerScienceSynarticleAPIResponse.Put(v)
}