This commit is contained in:
DEKA_123 2023-08-11 15:31:37 +08:00
commit 559c2d439d
3 changed files with 5 additions and 2 deletions

View File

@ -187,7 +187,7 @@ func deleteSpecificPark(c *fiber.Ctx) error {
parkLog.Error("无法删除园区。", zap.String("park id", parkId), zap.String("user id", session.Uid), zap.Error(err))
return result.Error(http.StatusInternalServerError, err.Error())
}
return result.Deleted("已删除指定的园区")
return result.Success("已删除指定的园区")
}
// 列出指定园区中已经登记的建筑

View File

@ -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(
"已经删除一条指定的商户充值记录",
)
}

View File

@ -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 在查询充值记录的时候发现缺少该字段(已添加)
}