order.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. package model
  2. import "go-common/library/time"
  3. //PayOrder pay order
  4. type PayOrder struct {
  5. ID int64 `json:"_"`
  6. OrderNo string `json:"order_no"`
  7. AppID int64 `json:"app_id"`
  8. Platform int8 `json:"platform"`
  9. OrderType int8 `json:"order_type"`
  10. AppSubID string `json:"app_sub_id"`
  11. Mid int64 `json:"mid"`
  12. ToMid int64 `json:"to_mid"`
  13. BuyMonths int16 `json:"buy_months"`
  14. Money float64 `json:"money"`
  15. RefundAmount float64 `json:"refund_amount"`
  16. Status int8 `json:"status"`
  17. PayType int8 `json:"pay_type"`
  18. RechargeBp float64 `json:"recharge_bp"`
  19. ThirdTradeNo string `json:"third_trade_no"`
  20. Ver int64 `json:"ver"`
  21. PaymentTime time.Time `json:"payment_time"`
  22. Ctime time.Time `json:"ctime"`
  23. Mtime time.Time `json:"mtime"`
  24. }
  25. //PayOrderLog pay order log.
  26. type PayOrderLog struct {
  27. ID int64 `json:"id"`
  28. OrderNo string `json:"order_no"`
  29. RefundID string `json:"refund_id"`
  30. RefundAmount float64 `json:"refund_amount"`
  31. Mid int64 `json:"mid"`
  32. Status int8 `json:"status"`
  33. Operator string `json:"operator"`
  34. }