Merge branch '0.2' of https://git.archgrid.xyz/free-lancers/electricity_bill_calc_service into 0.2
This commit is contained in:
commit
559c2d439d
|
@ -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))
|
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.Error(http.StatusInternalServerError, err.Error())
|
||||||
}
|
}
|
||||||
return result.Deleted("已删除指定的园区")
|
return result.Success("已删除指定的园区")
|
||||||
}
|
}
|
||||||
|
|
||||||
// 列出指定园区中已经登记的建筑
|
// 列出指定园区中已经登记的建筑
|
||||||
|
|
|
@ -8,6 +8,7 @@ import (
|
||||||
"electricity_bill_calc/tools"
|
"electricity_bill_calc/tools"
|
||||||
"electricity_bill_calc/types"
|
"electricity_bill_calc/types"
|
||||||
"electricity_bill_calc/vo"
|
"electricity_bill_calc/vo"
|
||||||
|
"fmt"
|
||||||
|
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
"github.com/jinzhu/copier"
|
"github.com/jinzhu/copier"
|
||||||
|
@ -136,7 +137,8 @@ func deleteTopUp(c *fiber.Ctx) error {
|
||||||
topUpLog.Error("删除一条指定的商户充值记录,删除失败", zap.Error(err))
|
topUpLog.Error("删除一条指定的商户充值记录,删除失败", zap.Error(err))
|
||||||
return result.NotAccept("商户充值记录删除不成功")
|
return result.NotAccept("商户充值记录删除不成功")
|
||||||
}
|
}
|
||||||
return result.Deleted(
|
fmt.Println("已经删除一条指定的商户充值记录")
|
||||||
|
return result.Success(
|
||||||
"已经删除一条指定的商户充值记录",
|
"已经删除一条指定的商户充值记录",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,4 +22,5 @@ type TopUpDetailQueryResponse struct {
|
||||||
Amount decimal.Decimal `json:"amount"`
|
Amount decimal.Decimal `json:"amount"`
|
||||||
PaymentType int16 `json:"paymentType"`
|
PaymentType int16 `json:"paymentType"`
|
||||||
SyncStatus int16 `json:"syncStatus" copier:"SyncStatus"`
|
SyncStatus int16 `json:"syncStatus" copier:"SyncStatus"`
|
||||||
|
CancelledAt *types.DateTime `json:"cancelledAt"` // TODO: 2023.08.11 在查询充值记录的时候发现缺少该字段(已添加)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user