Browse Source

提交代码

陈少旭 1 year ago
parent
commit
c255a45e34
1 changed files with 77 additions and 0 deletions
  1. 77 0
      models/jy_apply.go

+ 77 - 0
models/jy_apply.go View File

@@ -0,0 +1,77 @@
1
+package models
2
+
3
+import "encoding/xml"
4
+
5
+type JYApplyEnvelope struct {
6
+	XMLName xml.Name    `xml:"soap:Envelope"`
7
+	Soap    string      `xml:"xmlns:soap,attr"`
8
+	Xsi     string      `xml:"xmlns:xsi,attr"`
9
+	Xsd     string      `xml:"xmlns:xsd,attr"`
10
+	Body    JYApplyBody `xml:"soap:Body"`
11
+}
12
+
13
+type JYApplyBody struct {
14
+	XMLName         xml.Name        `xml:"soap:Body"`
15
+	InspectApplyReq InspectApplyReq `xml:"InspectApplyByInstituteItemCode"`
16
+}
17
+
18
+type InspectApplyReq struct {
19
+	XMLName         xml.Name `xml:"http://tempuri.org/ InspectApplyByInstituteItemCode"`
20
+	ApiKey          string   `xml:"apiKey"`
21
+	Apply           JYApply  `xml:"apply"`
22
+	ApplyDetailList struct {
23
+		CustomerApplyDetail []CustomerApplyDetail `xml:"CustomerApplyDetail"`
24
+	} `xml:"applyDetailList"`
25
+	//ApplyDetailList []JYApplyDetail    `xml:"applyDetailList>JYApplyDetail"`
26
+	ApplyAdditional *JYApplyAdditional `xml:"applyAdditional,omitempty"`
27
+}
28
+
29
+type EnvelopeFour struct {
30
+	XMLName xml.Name         `xml:"http://schemas.xmlsoap.org/soap/envelope/ Envelope"`
31
+	Body    EnvelopeBodyFour `xml:"Body"`
32
+}
33
+
34
+type EnvelopeBodyFour struct {
35
+	InspectApplyByInstituteItemCodeResponse InspectApplyByInstituteItemCodeResponse `xml:"InspectApplyByInstituteItemCodeResponse"`
36
+}
37
+
38
+type InspectApplyByInstituteItemCodeResponse struct {
39
+	XMLName      xml.Name `xml:"http://tempuri.org/ InspectApplyByInstituteItemCodeResponse"`
40
+	InspectApply string   `xml:"InspectApplyByInstituteItemCodeResult"`
41
+}
42
+
43
+type InspectApplyData struct {
44
+	Res           int           `json:"Res"`
45
+	Error         string        `json:"Error"`
46
+	JYApplyResult JYApplyResult `json:"Data"`
47
+}
48
+
49
+type JYApply struct {
50
+	XMLName      xml.Name `xml:"apply"`
51
+	PatientName  string   `xml:"PatientName"`
52
+	Sex          string   `xml:"Sex"`
53
+	Age          string   `xml:"Age"`
54
+	AgeUnit      string   `xml:"AgeUnit"`
55
+	RegisterCode string   `xml:"RegisterCode"`
56
+	Diagnosis    string   `xml:"Diagnosis"`
57
+	Ward         string   `xml:"Ward"`
58
+	BedCode      string   `xml:"BedCode"`
59
+	SendDoctor   string   `xml:"SendDoctor"`
60
+	PatientType  int      `xml:"PatientType"`
61
+	PatientPhone string   `xml:"PatientPhone"`
62
+}
63
+
64
+type CustomerApplyDetail struct {
65
+	RowIndex               int64  `xml:"RowIndex"`
66
+	CustomerChargeItemCode string `xml:"CustomerChargeItemCode"`
67
+	TakeSampleTime         string `xml:"TakeSampleTime"`
68
+	Barcode                string `xml:"Barcode"`
69
+	CustomerBarcode        string `xml:"CustomerBarcode"`
70
+	Comment                string `xml:"Comment"`
71
+}
72
+type JYApplyResult struct {
73
+	ApplyCode   string  `xml:"ApplyCode"`
74
+	TotalAmount float64 `xml:"TotalAmount"`
75
+}
76
+type JYApplyAdditional struct {
77
+}