-
Notifications
You must be signed in to change notification settings - Fork 9
/
AlibabaLegalCaseCommonNoticeAPIResponse.go
64 lines (55 loc) · 2.04 KB
/
AlibabaLegalCaseCommonNoticeAPIResponse.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 legalcase
import (
"encoding/xml"
"sync"
"github.com/bububa/opentaobao/model"
)
// AlibabaLegalCaseCommonNoticeAPIResponse 消息通知 API返回值
// alibaba.legal.case.common.notice
//
// 同步通知给诉讼系统
type AlibabaLegalCaseCommonNoticeAPIResponse struct {
model.CommonResponse
AlibabaLegalCaseCommonNoticeAPIResponseModel
}
// Reset 清空结构体
func (m *AlibabaLegalCaseCommonNoticeAPIResponse) Reset() {
(&m.CommonResponse).Reset()
(&m.AlibabaLegalCaseCommonNoticeAPIResponseModel).Reset()
}
// AlibabaLegalCaseCommonNoticeAPIResponseModel is 消息通知 成功返回结果
type AlibabaLegalCaseCommonNoticeAPIResponseModel struct {
XMLName xml.Name `xml:"alibaba_legal_case_common_notice_response"`
// 平台颁发的每次请求访问的唯一标识
RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
// error
Errcode string `json:"errcode,omitempty" xml:"errcode,omitempty"`
// content
Content string `json:"content,omitempty" xml:"content,omitempty"`
// msg
Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"`
// success
IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}
// Reset 清空结构体
func (m *AlibabaLegalCaseCommonNoticeAPIResponseModel) Reset() {
m.RequestId = ""
m.Errcode = ""
m.Content = ""
m.Errmsg = ""
m.IsSuccess = false
}
var poolAlibabaLegalCaseCommonNoticeAPIResponse = sync.Pool{
New: func() any {
return new(AlibabaLegalCaseCommonNoticeAPIResponse)
},
}
// GetAlibabaLegalCaseCommonNoticeAPIResponse 从 sync.Pool 获取 AlibabaLegalCaseCommonNoticeAPIResponse
func GetAlibabaLegalCaseCommonNoticeAPIResponse() *AlibabaLegalCaseCommonNoticeAPIResponse {
return poolAlibabaLegalCaseCommonNoticeAPIResponse.Get().(*AlibabaLegalCaseCommonNoticeAPIResponse)
}
// ReleaseAlibabaLegalCaseCommonNoticeAPIResponse 将 AlibabaLegalCaseCommonNoticeAPIResponse 保存到 sync.Pool
func ReleaseAlibabaLegalCaseCommonNoticeAPIResponse(v *AlibabaLegalCaseCommonNoticeAPIResponse) {
v.Reset()
poolAlibabaLegalCaseCommonNoticeAPIResponse.Put(v)
}