getprerechargelistrequest.go 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package http_model
  2. import "time"
  3. type GetPreRechargeListRequest struct {
  4. PageSize int `json:"page_size"`
  5. PageNum int `json:"page_num"`
  6. Status int `json:"status"`
  7. }
  8. type PreRechargeListResponse struct {
  9. ID string `json:"id"`
  10. EnterPrise string `json:"enterprise"`
  11. Operator string `json:"operator"`
  12. RechargeAmount float64 `json:"recharge_amount"`
  13. RechargeMethod int64 `json:"recharge_method"`
  14. TransferVoucherUrl string `json:"transfer_voucher_url"`
  15. Phone string `json:"phone"`
  16. CommitAt time.Time `json:"commit_at"`
  17. ConfirmAt time.Time `json:"confirm_at"`
  18. RefuseAt time.Time `json:"Refuse_at"`
  19. FailReason string `json:"fail_reason"`
  20. }
  21. type PreRechargeListData struct {
  22. PreRechargeListinfo []*PreRechargeListResponse `json:"pre_recharge_list_info"`
  23. Total int64 `json:"total"`
  24. }
  25. func NewGetPreRechargeListRequest() *GetPreRechargeListRequest {
  26. return new(GetPreRechargeListRequest)
  27. }
  28. func NewGetPreRechargeListResponse() *CommonResponse {
  29. resp := new(CommonResponse)
  30. resp.Data = new(PreRechargeListData)
  31. return resp
  32. }