2024-07-12 18:11:21 +08:00
|
|
|
package merchant
|
|
|
|
|
|
|
|
type GetOrderReq struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetOrderResp struct {
|
|
|
|
Id int64 `json:"id" `
|
|
|
|
OrderNo string `json:"order_no"`
|
|
|
|
MerchantId int64 `json:"merchant_id"`
|
|
|
|
ProductId int64 `json:"product_id"`
|
2024-07-17 17:04:25 +08:00
|
|
|
ProductUrl string `json:"product_url"`
|
2024-07-12 18:11:21 +08:00
|
|
|
OutTradeNo string `json:"out_trade_no"`
|
|
|
|
RechargeAccount string `json:"recharge_account"`
|
|
|
|
AccountType int64 `json:"account_type"`
|
|
|
|
Number int64 `json:"number"`
|
|
|
|
NotifyUrl string `json:"notify_url"`
|
|
|
|
ExtendParameter string `json:"extend_parameter"`
|
|
|
|
Status int64 `json:"status"`
|
|
|
|
TransferStatus int64 `json:"transfer_status"`
|
2024-07-22 10:16:48 +08:00
|
|
|
FailReason string `json:"fail_reason"`
|
2024-07-12 18:11:21 +08:00
|
|
|
CreatedAt string `json:"created_at" example:"2020-01-01 00:00:00"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type FinishOrderReq struct {
|
|
|
|
Id int64 `json:"id" validate:"required"`
|
|
|
|
OrderNo string `json:"order_no" validate:"required"`
|
|
|
|
ProductId int64 `json:"product_id" validate:"required"`
|
|
|
|
MerchantId int64 `json:"merchant_id" validate:"required"`
|
2024-08-07 13:46:10 +08:00
|
|
|
DeviceNo string `json:"device_no"`
|
2024-07-12 18:11:21 +08:00
|
|
|
Result string `json:"result" validate:"required"`
|
2024-07-22 10:16:48 +08:00
|
|
|
FailReason string `json:"fail_reason"`
|
2024-07-12 18:11:21 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type FinishOrderResp struct {
|
|
|
|
Id int64 `json:"id"`
|
|
|
|
}
|
2024-08-15 09:13:51 +08:00
|
|
|
|
|
|
|
type SetOrderMobileReq struct {
|
|
|
|
Id int64 `json:"id" validate:"required"`
|
|
|
|
OrderNo string `json:"order_no" validate:"required"`
|
|
|
|
ProductId int64 `json:"product_id" validate:"required"`
|
|
|
|
MerchantId int64 `json:"merchant_id" validate:"required"`
|
|
|
|
DeviceNo string `json:"device_no"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type SetOrderMobileResp struct {
|
|
|
|
Id int64 `json:"id"`
|
|
|
|
}
|
|
|
|
|