report_result_two.go 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. package models
  2. import "encoding/xml"
  3. type GPReportResultEnvelope 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 GPReportResultBody `xml:"soap:Body"`
  9. }
  10. type GPReportResultBody struct {
  11. XMLName xml.Name `xml:"soap:Body"`
  12. GetReportResultReq GetGPReportResultReq `xml:"GetJSONReportItemListByGPBarocde"`
  13. }
  14. type GetGPReportResultReq struct {
  15. XMLName xml.Name `xml:"http://tempuri.org/ GetJSONReportItemListByGPBarocde"`
  16. Key string `xml:"key"`
  17. GPBarCode string `xml:"GPBarCode"`
  18. }
  19. type EnvelopeFive struct {
  20. XMLName xml.Name `xml:"http://schemas.xmlsoap.org/soap/envelope/ Envelope"`
  21. Body EnvelopeBodyFive `xml:"Body"`
  22. }
  23. type EnvelopeBodyFive struct {
  24. GetJSONReportItemListByGPBarocdeResponse GetJSONReportItemListByGPBarocdeResponse `xml:"GetJSONReportItemListByGPBarocdeResponse"`
  25. }
  26. type GetJSONReportItemListByGPBarocdeResponse struct {
  27. XMLName xml.Name `xml:"http://tempuri.org/ GetJSONReportItemListByGPBarocdeResponse"`
  28. GetJSONReportItemListByGPBarocdeResult string `xml:"GetJSONReportItemListByGPBarocdeResult"`
  29. }
  30. type ReportResultDataFive struct {
  31. Res int `json:"Res"`
  32. Error string `json:"Error"`
  33. InspectResult []InspectResultFive `json:"Data"`
  34. }
  35. type InspectResultFive 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. }