diff --git a/internal/interface/controller/rest/wallet/wallet.go b/internal/interface/controller/rest/wallet/wallet.go index 55cb357..f57f6c4 100644 --- a/internal/interface/controller/rest/wallet/wallet.go +++ b/internal/interface/controller/rest/wallet/wallet.go @@ -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 of ", zap.Error(bindErr)) diff --git a/openapi.yaml b/openapi.yaml index 1a4b351..d9e1d0e 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -226,7 +226,6 @@ paths: application/json: schema: $ref: '#/components/schemas/Error' - delete: tags: - account