pof.go 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package response
  2. // Envelope follows the POF protocol's fixed Result/Data/ReMark response form.
  3. type Envelope struct {
  4. Result int `json:"Result"`
  5. Data interface{} `json:"Data"`
  6. ReMark string `json:"ReMark"`
  7. }
  8. type LoginResponse struct {
  9. Result int `json:"Result"`
  10. Token string `json:"Token,omitempty"`
  11. Data struct{} `json:"Data"`
  12. ReMark string `json:"ReMark"`
  13. }
  14. type QueryPriceData struct {
  15. OrderID string `json:"OrderId"`
  16. CarNo string `json:"CarNo"`
  17. InTime string `json:"InTime"`
  18. OutTime string `json:"OutTime"`
  19. StopTime string `json:"StopTime"`
  20. Price string `json:"Price"`
  21. CardNo string `json:"CardNo"`
  22. Remark string `json:"Remark"`
  23. InPic string `json:"InPic"`
  24. }
  25. type PayStatusData struct {
  26. OrderID string `json:"OrderId"`
  27. CarNo string `json:"CarNo"`
  28. State string `json:"State"`
  29. PayStatus string `json:"PayStatus"`
  30. PaymentStatus string `json:"PaymentStatus"`
  31. Fee string `json:"Fee"`
  32. Money string `json:"Money"`
  33. PaidAmount string `json:"PaidAmount"`
  34. PayTime string `json:"PayTime"`
  35. }