From 0db8e026a35cd81f9b53caebc59e63d6ae8ea665 Mon Sep 17 00:00:00 2001 From: momo <1012651275@qq.com> Date: Mon, 30 Oct 2023 18:29:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=AE=A2=E5=8D=95=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/repositories/order.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/service/repositories/order.go b/service/repositories/order.go index 653471ba..0bcd23b4 100644 --- a/service/repositories/order.go +++ b/service/repositories/order.go @@ -114,23 +114,23 @@ type ( OrderSn string `json:"order_sn"` } DeleteRes struct { - ErrorCode basic.StatusResponse - OrderSn string + ErrorCode basic.StatusResponse `json:"error_code"` + OrderSn string `json:"order_sn"` } /* 删除订单 */ /* 支付超时订单自动关闭 */ CloseListReq struct { - Type int64 // type:1=关闭 + Type int64 `json:"type"` // type:1=关闭 } CloseListRes struct{} /* 支付超时订单自动关闭 */ /* 关闭 */ CloseReq struct { - Type int64 // type:1=添加购物车 - OrderSn string - UserId int64 `json:"user_id"` + Type int64 `json:"type"` // type:1=添加购物车 + OrderSn string `json:"order_sn"` + UserId int64 `json:"user_id"` } CloseRes struct { ErrorCode basic.StatusResponse @@ -139,8 +139,8 @@ type ( /* 支付成功 */ PaymentSuccessfulReq struct { - EventId string - PaymentMethod string + EventId string `json:"event_id"` + PaymentMethod string `json:"payment_method"` Charge *stripe.Charge } PaymentSuccessfulRes struct{} @@ -191,7 +191,7 @@ type ( } CreateRes struct { ErrorCode basic.StatusResponse - OrderSn string + OrderSn string `json:"order_sn"` } /* 下单 */