-
Notifications
You must be signed in to change notification settings - Fork 9
/
SyncPatientInfoRequest.go
40 lines (35 loc) · 1.17 KB
/
SyncPatientInfoRequest.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
package alihealthoutflow
import (
"sync"
)
// SyncPatientInfoRequest 结构体
type SyncPatientInfoRequest struct {
// 患者id(非空)
PatientId string `json:"patient_id,omitempty" xml:"patient_id,omitempty"`
// 患者姓名(非空)
PatientName string `json:"patient_name,omitempty" xml:"patient_name,omitempty"`
// 身份证号(非空)
IdCard string `json:"id_card,omitempty" xml:"id_card,omitempty"`
// 患者手机号(非空)
MobilePhone string `json:"mobile_phone,omitempty" xml:"mobile_phone,omitempty"`
// 所属医院id(非空)
HospitalId string `json:"hospital_id,omitempty" xml:"hospital_id,omitempty"`
}
var poolSyncPatientInfoRequest = sync.Pool{
New: func() any {
return new(SyncPatientInfoRequest)
},
}
// GetSyncPatientInfoRequest() 从对象池中获取SyncPatientInfoRequest
func GetSyncPatientInfoRequest() *SyncPatientInfoRequest {
return poolSyncPatientInfoRequest.Get().(*SyncPatientInfoRequest)
}
// ReleaseSyncPatientInfoRequest 释放SyncPatientInfoRequest
func ReleaseSyncPatientInfoRequest(v *SyncPatientInfoRequest) {
v.PatientId = ""
v.PatientName = ""
v.IdCard = ""
v.MobilePhone = ""
v.HospitalId = ""
poolSyncPatientInfoRequest.Put(v)
}