From e229f3976dcea3b3d4a9ece8c3e584895290d6a0 Mon Sep 17 00:00:00 2001 From: ZiHangQin <1420014281@qq.com> Date: Fri, 11 Aug 2023 14:52:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(#20):=20=E4=BF=AE=E5=A4=8D=E5=9C=A8?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=85=85=E5=80=BC=E8=AE=B0=E5=BD=95=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=E5=87=BA=E7=8E=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/top_up.go | 4 +++- vo/top_up.go | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/controller/top_up.go b/controller/top_up.go index 60bd017..fd5660e 100644 --- a/controller/top_up.go +++ b/controller/top_up.go @@ -8,6 +8,7 @@ import ( "electricity_bill_calc/tools" "electricity_bill_calc/types" "electricity_bill_calc/vo" + "fmt" "github.com/gofiber/fiber/v2" "github.com/jinzhu/copier" @@ -136,7 +137,8 @@ func deleteTopUp(c *fiber.Ctx) error { topUpLog.Error("删除一条指定的商户充值记录,删除失败", zap.Error(err)) return result.NotAccept("商户充值记录删除不成功") } - return result.Deleted( + fmt.Println("已经删除一条指定的商户充值记录") + return result.Success( "已经删除一条指定的商户充值记录", ) } diff --git a/vo/top_up.go b/vo/top_up.go index 5138de3..635a1f7 100644 --- a/vo/top_up.go +++ b/vo/top_up.go @@ -22,4 +22,5 @@ type TopUpDetailQueryResponse struct { Amount decimal.Decimal `json:"amount"` PaymentType int16 `json:"paymentType"` SyncStatus int16 `json:"syncStatus" copier:"SyncStatus"` + CancelledAt *types.DateTime `json:"cancelledAt"` // TODO: 2023.08.11 在查询充值记录的时候发现缺少该字段(已添加) }