fix: issues

This commit is contained in:
Rogee
2024-12-19 10:22:25 +08:00
parent db05ee4265
commit 32b8efe5ad
4 changed files with 28 additions and 1 deletions

View File

@@ -27,6 +27,7 @@ func (r Response) Response(ctx fiber.Ctx) error {
var (
RequestParseError = Response{http.StatusBadRequest, http.StatusBadRequest, "请求解析错误"}
RequestUnAuthorized = Response{http.StatusUnauthorized, http.StatusUnauthorized, "未授权"}
InternalError = Response{http.StatusInternalServerError, http.StatusInternalServerError, "内部错误"}
UserBalanceNotEnough = Response{http.StatusPaymentRequired, 1001, "余额不足,请充值"}
InvalidChargeCode = Response{http.StatusPaymentRequired, 1002, "无效的充值码"}