generated from PenaSide/GolangTemplate
predict errors in logger bcs some types dont match
This commit is contained in:
parent
1ce4b13716
commit
d00b3f23c9
@ -57,7 +57,7 @@ func (receiver *Controller) OnSuccess(ctx context.Context, in *payment_callback.
|
||||
|
||||
receiver.hLogger.Emit(models.InfoMoneyIncome{
|
||||
CtxUserID: in.Payment.UserID,
|
||||
CtxPrice: in.Payment.Amount,
|
||||
CtxPrice: uint64(in.Payment.Amount),
|
||||
KeyCurrency: in.Payment.Currency,
|
||||
CtxID: in.Payment.PaymentID,
|
||||
KeyPaymentType: in.Payment.Type,
|
||||
|
@ -90,7 +90,7 @@ func (receiver *WalletController) RequestMoney(ctx *fiber.Ctx) error {
|
||||
CtxAccountID: "",
|
||||
KeyPaymentType: string(request.Type),
|
||||
KeyCurrency: request.Currency,
|
||||
CtxPrice: request.Amount,
|
||||
CtxPrice: uint64(request.Amount),
|
||||
CtxReturnURL: link,
|
||||
})
|
||||
|
||||
@ -336,7 +336,7 @@ func (receiver *WalletController) PostWalletRspay(ctx *fiber.Ctx) error {
|
||||
KeyPath: ctx.Path(),
|
||||
CtxUserID: userID,
|
||||
CtxAccountID: user.ID,
|
||||
CtxPrice: int64(*req.Money),
|
||||
CtxPrice: uint64(*req.Money),
|
||||
CtxLogin: authData.Login,
|
||||
})
|
||||
|
||||
|
@ -16,10 +16,10 @@ type AllFields struct {
|
||||
KeyCurrency string
|
||||
CtxTariffID string
|
||||
KeySuccess bool
|
||||
CtxPrice int64
|
||||
CtxPrice uint64
|
||||
CtxTariff string
|
||||
CtxDiscount string
|
||||
CtxRowPrice int64
|
||||
CtxRowPrice uint64
|
||||
CtxRowData string
|
||||
KeyPaymentType string
|
||||
CtxReturnURL string
|
||||
@ -85,13 +85,13 @@ type InfoRequestMoney struct {
|
||||
CtxAccountID string // айдишник аккаунта
|
||||
KeyPaymentType string //направление оплаты, через которое оплачиваем
|
||||
KeyCurrency string //значение валюты кошелька. сейчас там фиксированное, но потом пригодится
|
||||
CtxPrice int64 // сумма в копейках
|
||||
CtxPrice uint64 // сумма в копейках
|
||||
CtxReturnURL string // возвращенный от аггрегатора линк на оплату
|
||||
}
|
||||
|
||||
type InfoMoneyIncome struct {
|
||||
CtxUserID string //айдишник юзера из токена
|
||||
CtxPrice int64 // сумма в копейках
|
||||
CtxPrice uint64 // сумма в копейках
|
||||
KeyCurrency string //значение валюты кошелька. сейчас там фиксированное, но потом пригодится
|
||||
CtxID string //айдишник запроса оплаты
|
||||
KeyPaymentType string //направление оплаты, через которое оплачиваем
|
||||
@ -116,6 +116,6 @@ type InfoRSPay struct {
|
||||
KeyPath string
|
||||
CtxUserID string //айдишник юзера из токена
|
||||
CtxAccountID string // айдишник аккаунта
|
||||
CtxPrice int64 // сумма в копейках
|
||||
CtxPrice uint64 // сумма в копейках
|
||||
CtxLogin string // значение логина. мы там получаем его из сервиса авторизации
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user