response.go 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. //==================================
  2. // * Name:Jerry
  3. // * Tel:18017448610
  4. // * DateTime:2019/1/13 14:03
  5. //==================================
  6. package gopay
  7. type weChatPayResponse struct {
  8. ReturnCode string `xml:"return_code"`
  9. ReturnMsg string `xml:"return_msg"`
  10. Appid string `xml:"appid"`
  11. MchId string `xml:"mch_id"`
  12. DeviceInfo string `xml:"device_info"`
  13. NonceStr string `xml:"nonce_str"`
  14. Sign string `xml:"sign"`
  15. ResultCode string `xml:"result_code"`
  16. ErrCode string `xml:"err_code"`
  17. ErrCodeDes string `xml:"err_code_des"`
  18. PrepayId string `xml:"prepay_id"`
  19. TradeType string `xml:"trade_type"`
  20. }
  21. type aliPayResponse struct {
  22. ReturnCode string `xml:"return_code"`
  23. ReturnMsg string `xml:"return_msg"`
  24. Appid string `xml:"appid"`
  25. MchId string `xml:"mch_id"`
  26. DeviceInfo string `xml:"device_info"`
  27. NonceStr string `xml:"nonce_str"`
  28. Sign string `xml:"sign"`
  29. ResultCode string `xml:"result_code"`
  30. PrepayId string `xml:"prepay_id"`
  31. TradeType string `xml:"trade_type"`
  32. }