first commit
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
package dto
|
||||
|
||||
// OrderListRequest 订单列表请求。
|
||||
type OrderListRequest struct {
|
||||
PageRequest
|
||||
OrderNo string `form:"order_no"` // 订单号(精确)
|
||||
UserID int64 `form:"user_id"` // 用户 ID
|
||||
Status int8 `form:"status" binding:"omitempty,oneof=1 2 3 4 5"`
|
||||
}
|
||||
|
||||
// OrderItem 订单信息(金额单位:分)。
|
||||
type OrderItem struct {
|
||||
OrderNo string `json:"order_no"`
|
||||
UserID int64 `json:"user_id"`
|
||||
GoodsID int64 `json:"goods_id"`
|
||||
GoodsName string `json:"goods_name"`
|
||||
UnitPrice int64 `json:"unit_price"`
|
||||
TotalAmount int64 `json:"total_amount"`
|
||||
PayAmount int64 `json:"pay_amount"`
|
||||
PayChannel int8 `json:"pay_channel"` // 1=微信支付 2=微信虚拟支付
|
||||
OrderStatus int8 `json:"order_status"`
|
||||
TransactionID string `json:"transaction_id"`
|
||||
MemberDays int64 `json:"member_days"`
|
||||
UploadQuota int64 `json:"upload_quota"`
|
||||
AIRecommendQuota int64 `json:"ai_recommend_quota"`
|
||||
ClosetShareQuota int64 `json:"closet_share_quota"`
|
||||
OutfitShareQuota int64 `json:"outfit_share_quota"`
|
||||
ExpireTime int64 `json:"expire_time"`
|
||||
PayTime int64 `json:"pay_time"`
|
||||
RefundTime int64 `json:"refund_time"`
|
||||
RefundAmount int64 `json:"refund_amount"`
|
||||
Remark string `json:"remark"`
|
||||
XPayProductID string `json:"xpay_product_id"` // 虚拟支付道具ID(pay_channel=2 时使用)
|
||||
XPayPlatform string `json:"xpay_platform"` // 虚拟支付平台 android/ios/harmony/windows
|
||||
XPayEnv int8 `json:"xpay_env"` // 虚拟支付环境 0=现网 1=沙箱
|
||||
CreatedAt int64 `json:"created_at"`
|
||||
}
|
||||
|
||||
// OrderListResponse 订单列表响应。
|
||||
type OrderListResponse struct {
|
||||
PageResponse
|
||||
List []OrderItem `json:"list"`
|
||||
}
|
||||
|
||||
// RefundListRequest 退款单列表请求。
|
||||
// Status 用指针区分「未传(nil,不过滤)」与「显式传 0(筛选待处理)」。
|
||||
type RefundListRequest struct {
|
||||
PageRequest
|
||||
Status *int8 `form:"status" binding:"omitempty,oneof=0 1 2 3"` // 0=待处理 1=退款中 2=成功 3=失败;不传=全部
|
||||
OrderNo string `form:"order_no"`
|
||||
}
|
||||
|
||||
// RefundItem 退款单信息。
|
||||
type RefundItem struct {
|
||||
RefundNo string `json:"refund_no"`
|
||||
OrderNo string `json:"order_no"`
|
||||
UserID int64 `json:"user_id"`
|
||||
RefundAmount int64 `json:"refund_amount"`
|
||||
RefundReason string `json:"refund_reason"`
|
||||
Status int8 `json:"status"` // 0=待处理 1=退款中 2=退款成功 3=退款失败
|
||||
ApplyTime int64 `json:"apply_time"`
|
||||
SuccessTime int64 `json:"success_time"`
|
||||
FailReason string `json:"fail_reason"`
|
||||
CreatedAt int64 `json:"created_at"`
|
||||
}
|
||||
|
||||
// RefundListResponse 退款单列表响应。
|
||||
type RefundListResponse struct {
|
||||
PageResponse
|
||||
List []RefundItem `json:"list"`
|
||||
}
|
||||
|
||||
// RefundAuditRequest 退款审核请求。
|
||||
type RefundAuditRequest struct {
|
||||
Reason string `json:"reason" binding:"required,max=200"` // 通过=审核备注;驳回=驳回原因
|
||||
}
|
||||
Reference in New Issue
Block a user