report_result.go 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. package models
  2. import "encoding/xml"
  3. type ReportResultEnvelope struct {
  4. XMLName xml.Name `xml:"soap:Envelope"`
  5. Soap string `xml:"xmlns:soap,attr"`
  6. Xsi string `xml:"xmlns:xsi,attr"`
  7. Xsd string `xml:"xmlns:xsd,attr"`
  8. Body ReportResultBody `xml:"soap:Body"`
  9. }
  10. type ReportResultBody struct {
  11. XMLName xml.Name `xml:"soap:Body"`
  12. GetReportResultReq GetReportResultReq `xml:"GetJSONReportItemListByCustomerBarocde"`
  13. }
  14. type GetReportResultReq struct {
  15. XMLName xml.Name `xml:"http://tempuri.org/ GetJSONReportItemListByCustomerBarocde"`
  16. Key string `xml:"key"`
  17. CustomerBarCode string `xml:"CustomerBarCode"`
  18. }
  19. type EnvelopeThree struct {
  20. XMLName xml.Name `xml:"http://schemas.xmlsoap.org/soap/envelope/ Envelope"`
  21. Body EnvelopeBodyThree `xml:"Body"`
  22. }
  23. type EnvelopeBodyThree struct {
  24. GetJSONReportItemListByCustomerBarocdeResponse GetJSONReportItemListByCustomerBarocdeResponse `xml:"GetJSONReportItemListByCustomerBarocdeResponse"`
  25. }
  26. type GetJSONReportItemListByCustomerBarocdeResponse struct {
  27. XMLName xml.Name `xml:"http://tempuri.org/ GetJSONReportItemListByCustomerBarocdeResponse"`
  28. GetJSONReportItemListByCustomerBarocdeResult string `xml:"GetJSONReportItemListByCustomerBarocdeResult"`
  29. }
  30. type ReportResultData struct {
  31. Res int `json:"Res"`
  32. Error string `json:"Error"`
  33. InspectResult []InspectResult `json:"Data"`
  34. }
  35. type InspectResult struct {
  36. ChargeItemName string `json:"ChargeItemName"`
  37. InspectionName string `json:"InspectionName"`
  38. InspectionCode string `json:"InspectionCode"`
  39. Result string `json:"Result"`
  40. Reference string `json:"Reference"`
  41. Barcode string `json:"Barcode"`
  42. Unit string `json:"Unit"`
  43. Flag string `json:"Flag"`
  44. intFlag int `json:"intFlag"`
  45. ListResult GPReportListResultData
  46. }