chore: todo currency validate

This commit is contained in:
Kirill 2023-06-13 15:32:08 +03:00
parent 80a0eec3b7
commit 657db37ff6
2 changed files with 2 additions and 1 deletions

@ -49,6 +49,8 @@ func New(deps *Deps) *Controller {
}
func (receiver *Controller) PutMoney(ctx echo.Context) error {
// TODO: Добавить валидацию Currency. Чтобы ключи стран были в определённом формате: ISO-4217.
request, bindErr := echotools.Bind[models.ReplenishAccountWallet](ctx)
if bindErr != nil {
receiver.logger.Error("failed to bind body on <PutMoney> of <WalletController>", zap.Error(bindErr))

@ -226,7 +226,6 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
delete:
tags:
- account