generated from PenaSide/GolangTemplate
chore: todo currency validate
This commit is contained in:
parent
80a0eec3b7
commit
657db37ff6
@ -49,6 +49,8 @@ func New(deps *Deps) *Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (receiver *Controller) PutMoney(ctx echo.Context) error {
|
func (receiver *Controller) PutMoney(ctx echo.Context) error {
|
||||||
|
// TODO: Добавить валидацию Currency. Чтобы ключи стран были в определённом формате: ISO-4217.
|
||||||
|
|
||||||
request, bindErr := echotools.Bind[models.ReplenishAccountWallet](ctx)
|
request, bindErr := echotools.Bind[models.ReplenishAccountWallet](ctx)
|
||||||
if bindErr != nil {
|
if bindErr != nil {
|
||||||
receiver.logger.Error("failed to bind body on <PutMoney> of <WalletController>", zap.Error(bindErr))
|
receiver.logger.Error("failed to bind body on <PutMoney> of <WalletController>", zap.Error(bindErr))
|
||||||
|
@ -226,7 +226,6 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/Error'
|
$ref: '#/components/schemas/Error'
|
||||||
|
|
||||||
delete:
|
delete:
|
||||||
tags:
|
tags:
|
||||||
- account
|
- account
|
||||||
|
Loading…
Reference in New Issue
Block a user