GetRechargeListRequest.go 923 B

123456789101112131415161718192021222324252627282930313233
  1. package http_model
  2. import "time"
  3. type GetRechargeListRequest struct {
  4. PageSize int `json:"page_size"`
  5. PageNum int `json:"page_num"`
  6. }
  7. type RechargeListResponse struct {
  8. ID string `json:"id"`
  9. Operator string `json:"operator"`
  10. RechargeAmount float64 `json:"recharge_amount"`
  11. RechargeMethod int64 `json:"recharge_method"`
  12. TransferVoucherUrl string `json:"transfer_voucher_url"`
  13. Phone string `json:"phone"`
  14. ConfirmAt time.Time `json:"confirm_at"`
  15. }
  16. type RechargeListData struct {
  17. RechargeListinfo []*RechargeListResponse `json:"recharge_list_info"`
  18. Total int64 `json:"total"`
  19. }
  20. func NewGetRechargeListRequest() *GetRechargeListRequest {
  21. return new(GetRechargeListRequest)
  22. }
  23. func NewGetRechargeListResponse() *CommonResponse {
  24. resp := new(CommonResponse)
  25. resp.Data = new(RechargeListData)
  26. return resp
  27. }