From f1337706f0e77ba05fdcc5e4b9b1dcc4dacb21d7 Mon Sep 17 00:00:00 2001 From: GuwandykA Date: Sat, 24 Oct 2026 22:08:32 +0500 Subject: [PATCH] swagger: document the ?lang= query parameter on every admin endpoint appresult.Localize applies to all /api/admin routes, so each handler's godoc now declares lang (tm, ru, en, all; default tm) and Swagger UI offers it as a dropdown. Co-Authored-By: Claude Opus 5.5 --- docs/docs.go | 1895 +++++++++++++++++++ docs/swagger.json | 1895 +++++++++++++++++++ docs/swagger.yaml | 1600 ++++++++++++++++ internal/analytics/handler.go | 6 + internal/backup/handler.go | 5 + internal/cards/cardbalance/handler.go | 5 + internal/cards/cardorder/handler.go | 5 + internal/cards/cardpinorders/handler.go | 5 + internal/cards/cardrekwizit/handler.go | 5 + internal/cards/cards/handler.go | 5 + internal/cards/paymentcard/handler.go | 6 + internal/cards/reasonscard/handler.go | 5 + internal/cards/visamaster/handler.go | 6 + internal/currency/handler.go | 5 + internal/dashboard/handler.go | 2 + internal/identity/activitylog/handler.go | 2 + internal/identity/auth/handler.go | 8 + internal/identity/permission/handler.go | 1 + internal/identity/role/handler.go | 5 + internal/identity/user/handler.go | 11 + internal/identity/userbranch/handler.go | 2 + internal/lending/loanorders/handler.go | 6 + internal/lending/loanpaidletter/handler.go | 6 + internal/lending/loansdocument/handler.go | 6 + internal/lending/loansrepayment/handler.go | 5 + internal/lending/loantype/handler.go | 5 + internal/org/branches/handler.go | 7 + internal/org/province/handler.go | 5 + internal/payment/paymenthistory/handler.go | 5 + internal/payment/paymentsettings/handler.go | 2 + internal/payment/paymenttexts/handler.go | 4 + internal/payment/visamasterpay/handler.go | 4 + 32 files changed, 5534 insertions(+) diff --git a/docs/docs.go b/docs/docs.go index 48dec40..0065a03 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -62,6 +62,19 @@ const docTemplate = `{ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -108,6 +121,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -179,6 +205,19 @@ const docTemplate = `{ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -216,6 +255,21 @@ const docTemplate = `{ "backups" ], "summary": "Create SQL backup", + "parameters": [ + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" + } + ], "responses": { "201": { "description": "Created", @@ -254,6 +308,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -304,6 +371,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -356,6 +436,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -413,6 +506,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/userbranch.CreateUserBranchDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -459,6 +565,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -542,6 +661,19 @@ const docTemplate = `{ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -591,6 +723,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/branches.CreateBranchDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -644,6 +789,19 @@ const docTemplate = `{ "description": "Only active etraps", "name": "active", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -690,6 +848,19 @@ const docTemplate = `{ "description": "Only active provinces", "name": "active", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -736,6 +907,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -798,6 +982,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/branches.UpdateBranchDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -848,6 +1045,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -925,6 +1135,19 @@ const docTemplate = `{ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -974,6 +1197,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/cardbalance.CreateCardBalanceDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1020,6 +1256,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1082,6 +1331,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/cardbalance.UpdateCardBalanceDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1132,6 +1394,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1227,6 +1502,19 @@ const docTemplate = `{ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1276,6 +1564,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/cardorder.CreateCardOrderDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1322,6 +1623,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1384,6 +1698,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/cardorder.UpdateCardOrderDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1434,6 +1761,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1523,6 +1863,19 @@ const docTemplate = `{ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1572,6 +1925,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/cardpinorders.CreateCardPinOrderDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1618,6 +1984,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1680,6 +2059,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/cardpinorders.UpdateCardPinOrderDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1730,6 +2122,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1819,6 +2224,19 @@ const docTemplate = `{ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1868,6 +2286,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/cardrekwizit.CreateCardRekwizitOrderDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1914,6 +2345,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1976,6 +2420,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/cardrekwizit.UpdateCardRekwizitOrderDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2026,6 +2483,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2097,6 +2567,19 @@ const docTemplate = `{ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2146,6 +2629,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/cards.CreateCardDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2192,6 +2688,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2254,6 +2763,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/cards.UpdateCardDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2304,6 +2826,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2381,6 +2916,19 @@ const docTemplate = `{ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2430,6 +2978,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/currency.CreateCurrencyDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2482,6 +3043,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2544,6 +3118,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/currency.UpdateCurrencyDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2600,6 +3187,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2659,6 +3259,19 @@ const docTemplate = `{ "description": "End date YYYY-MM-DD (inclusive)", "name": "to", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2712,6 +3325,19 @@ const docTemplate = `{ "description": "End date YYYY-MM-DD (inclusive)", "name": "to", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2765,6 +3391,19 @@ const docTemplate = `{ "description": "End date YYYY-MM-DD (inclusive)", "name": "to", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2818,6 +3457,19 @@ const docTemplate = `{ "description": "End date YYYY-MM-DD (inclusive)", "name": "to", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2871,6 +3523,19 @@ const docTemplate = `{ "description": "End date YYYY-MM-DD (inclusive)", "name": "to", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2931,6 +3596,19 @@ const docTemplate = `{ "description": "Number of operators to return", "name": "operator_limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2983,6 +3661,19 @@ const docTemplate = `{ "description": "Number of recent activity items to return", "name": "recent_limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3022,6 +3713,21 @@ const docTemplate = `{ "dashboard" ], "summary": "Server statistics", + "parameters": [ + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" + } + ], "responses": { "200": { "description": "OK", @@ -3074,6 +3780,19 @@ const docTemplate = `{ "name": "file", "in": "formData", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3114,6 +3833,19 @@ const docTemplate = `{ "name": "file_name", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3165,6 +3897,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3205,6 +3950,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/auth.ForgotPasswordDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3251,6 +4009,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/auth.ResetPasswordDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3328,6 +4099,19 @@ const docTemplate = `{ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3377,6 +4161,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/loanorders.CreateLoanOrderDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3454,6 +4251,19 @@ const docTemplate = `{ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3500,6 +4310,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3562,6 +4385,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/loanorders.UpdateLoanOrderDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3612,6 +4448,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3701,6 +4550,19 @@ const docTemplate = `{ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3750,6 +4612,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/loanpaidletter.CreateLoanPaidLetterDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3803,6 +4678,19 @@ const docTemplate = `{ "description": "Only active branches", "name": "active", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3849,6 +4737,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3911,6 +4812,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/loanpaidletter.UpdateLoanPaidLetterDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3961,6 +4875,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4026,6 +4953,19 @@ const docTemplate = `{ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4075,6 +5015,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/loantype.CreateLoanTypeDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4121,6 +5074,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4183,6 +5149,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/loantype.UpdateLoanTypeDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4233,6 +5212,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4304,6 +5296,19 @@ const docTemplate = `{ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4353,6 +5358,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/loansdocument.CreateLoanDocumentDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4399,6 +5417,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4461,6 +5492,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/loansdocument.UpdateLoanDocumentDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4511,6 +5555,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4575,6 +5632,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/loansdocument.UpdateLoanDocumentActiveDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4640,6 +5710,19 @@ const docTemplate = `{ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4689,6 +5772,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/loansrepayment.CreateLoanRepaymentDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4735,6 +5831,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4797,6 +5906,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/loansrepayment.UpdateLoanRepaymentDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4847,6 +5969,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4899,6 +6034,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/auth.LoginDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4964,6 +6112,19 @@ const docTemplate = `{ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5013,6 +6174,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/paymentcard.CreatePaymentCardDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5059,6 +6233,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5121,6 +6308,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/paymentcard.UpdatePaymentCardDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5171,6 +6371,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5235,6 +6448,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/paymentcard.UpdatePaymentCardActiveDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5348,6 +6574,19 @@ const docTemplate = `{ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5394,6 +6633,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5452,6 +6704,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5513,6 +6778,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5574,6 +6852,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5635,6 +6926,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5689,6 +6993,21 @@ const docTemplate = `{ "payment-settings" ], "summary": "Get payment settings", + "parameters": [ + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" + } + ], "responses": { "200": { "description": "OK", @@ -5730,6 +7049,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/paymentsettings.UpdatePaymentSettingsDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5775,6 +7107,19 @@ const docTemplate = `{ "description": "Filter by code, name or text", "name": "search", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5815,6 +7160,19 @@ const docTemplate = `{ "name": "code", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5871,6 +7229,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/paymenttexts.UpdatePaymentTextDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5921,6 +7292,19 @@ const docTemplate = `{ "name": "code", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5966,6 +7350,21 @@ const docTemplate = `{ "permission" ], "summary": "List permissions", + "parameters": [ + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" + } + ], "responses": { "200": { "description": "OK", @@ -5991,6 +7390,21 @@ const docTemplate = `{ "auth" ], "summary": "Get profile", + "parameters": [ + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" + } + ], "responses": { "200": { "description": "OK", @@ -6044,6 +7458,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/auth.UpdateProfileDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6121,6 +7548,19 @@ const docTemplate = `{ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6170,6 +7610,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/province.CreateProvinceDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6216,6 +7669,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6278,6 +7744,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/province.UpdateProvinceDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6328,6 +7807,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6393,6 +7885,19 @@ const docTemplate = `{ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6442,6 +7947,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/reasonscard.CreateReasonCardDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6488,6 +8006,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6550,6 +8081,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/reasonscard.UpdateReasonCardDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6600,6 +8144,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6652,6 +8209,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/auth.RegisterDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6698,6 +8268,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/auth.VerifyDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6757,6 +8340,19 @@ const docTemplate = `{ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6806,6 +8402,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/role.CreateRoleDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6864,6 +8473,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6926,6 +8548,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/role.UpdateRoleDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6982,6 +8617,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7046,6 +8694,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/auth.RefreshTokenDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7111,6 +8772,19 @@ const docTemplate = `{ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7160,6 +8834,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/user.CreateUserDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7231,6 +8918,19 @@ const docTemplate = `{ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7296,6 +8996,19 @@ const docTemplate = `{ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7342,6 +9055,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7404,6 +9130,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/user.UpdateUserDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7466,6 +9205,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7542,6 +9294,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/user.SetUserRoleDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7649,6 +9414,19 @@ const docTemplate = `{ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7698,6 +9476,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/visamaster.CreateVisaMasterPaymentOrderDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7739,6 +9530,19 @@ const docTemplate = `{ "name": "paymentId", "in": "query", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7810,6 +9614,19 @@ const docTemplate = `{ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7856,6 +9673,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7918,6 +9748,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/visamaster.UpdateVisaMasterPaymentOrderDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7968,6 +9811,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -8032,6 +9888,19 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/visamasterpay.PayOrderDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -8084,6 +9953,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -8136,6 +10018,19 @@ const docTemplate = `{ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { diff --git a/docs/swagger.json b/docs/swagger.json index b0bcd5b..22b8e5f 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -56,6 +56,19 @@ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -102,6 +115,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -173,6 +199,19 @@ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -210,6 +249,21 @@ "backups" ], "summary": "Create SQL backup", + "parameters": [ + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" + } + ], "responses": { "201": { "description": "Created", @@ -248,6 +302,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -298,6 +365,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -350,6 +430,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -407,6 +500,19 @@ "schema": { "$ref": "#/definitions/userbranch.CreateUserBranchDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -453,6 +559,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -536,6 +655,19 @@ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -585,6 +717,19 @@ "schema": { "$ref": "#/definitions/branches.CreateBranchDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -638,6 +783,19 @@ "description": "Only active etraps", "name": "active", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -684,6 +842,19 @@ "description": "Only active provinces", "name": "active", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -730,6 +901,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -792,6 +976,19 @@ "schema": { "$ref": "#/definitions/branches.UpdateBranchDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -842,6 +1039,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -919,6 +1129,19 @@ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -968,6 +1191,19 @@ "schema": { "$ref": "#/definitions/cardbalance.CreateCardBalanceDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1014,6 +1250,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1076,6 +1325,19 @@ "schema": { "$ref": "#/definitions/cardbalance.UpdateCardBalanceDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1126,6 +1388,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1221,6 +1496,19 @@ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1270,6 +1558,19 @@ "schema": { "$ref": "#/definitions/cardorder.CreateCardOrderDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1316,6 +1617,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1378,6 +1692,19 @@ "schema": { "$ref": "#/definitions/cardorder.UpdateCardOrderDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1428,6 +1755,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1517,6 +1857,19 @@ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1566,6 +1919,19 @@ "schema": { "$ref": "#/definitions/cardpinorders.CreateCardPinOrderDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1612,6 +1978,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1674,6 +2053,19 @@ "schema": { "$ref": "#/definitions/cardpinorders.UpdateCardPinOrderDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1724,6 +2116,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1813,6 +2218,19 @@ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1862,6 +2280,19 @@ "schema": { "$ref": "#/definitions/cardrekwizit.CreateCardRekwizitOrderDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1908,6 +2339,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -1970,6 +2414,19 @@ "schema": { "$ref": "#/definitions/cardrekwizit.UpdateCardRekwizitOrderDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2020,6 +2477,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2091,6 +2561,19 @@ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2140,6 +2623,19 @@ "schema": { "$ref": "#/definitions/cards.CreateCardDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2186,6 +2682,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2248,6 +2757,19 @@ "schema": { "$ref": "#/definitions/cards.UpdateCardDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2298,6 +2820,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2375,6 +2910,19 @@ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2424,6 +2972,19 @@ "schema": { "$ref": "#/definitions/currency.CreateCurrencyDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2476,6 +3037,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2538,6 +3112,19 @@ "schema": { "$ref": "#/definitions/currency.UpdateCurrencyDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2594,6 +3181,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2653,6 +3253,19 @@ "description": "End date YYYY-MM-DD (inclusive)", "name": "to", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2706,6 +3319,19 @@ "description": "End date YYYY-MM-DD (inclusive)", "name": "to", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2759,6 +3385,19 @@ "description": "End date YYYY-MM-DD (inclusive)", "name": "to", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2812,6 +3451,19 @@ "description": "End date YYYY-MM-DD (inclusive)", "name": "to", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2865,6 +3517,19 @@ "description": "End date YYYY-MM-DD (inclusive)", "name": "to", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2925,6 +3590,19 @@ "description": "Number of operators to return", "name": "operator_limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -2977,6 +3655,19 @@ "description": "Number of recent activity items to return", "name": "recent_limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3016,6 +3707,21 @@ "dashboard" ], "summary": "Server statistics", + "parameters": [ + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" + } + ], "responses": { "200": { "description": "OK", @@ -3068,6 +3774,19 @@ "name": "file", "in": "formData", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3108,6 +3827,19 @@ "name": "file_name", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3159,6 +3891,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3199,6 +3944,19 @@ "schema": { "$ref": "#/definitions/auth.ForgotPasswordDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3245,6 +4003,19 @@ "schema": { "$ref": "#/definitions/auth.ResetPasswordDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3322,6 +4093,19 @@ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3371,6 +4155,19 @@ "schema": { "$ref": "#/definitions/loanorders.CreateLoanOrderDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3448,6 +4245,19 @@ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3494,6 +4304,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3556,6 +4379,19 @@ "schema": { "$ref": "#/definitions/loanorders.UpdateLoanOrderDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3606,6 +4442,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3695,6 +4544,19 @@ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3744,6 +4606,19 @@ "schema": { "$ref": "#/definitions/loanpaidletter.CreateLoanPaidLetterDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3797,6 +4672,19 @@ "description": "Only active branches", "name": "active", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3843,6 +4731,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3905,6 +4806,19 @@ "schema": { "$ref": "#/definitions/loanpaidletter.UpdateLoanPaidLetterDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -3955,6 +4869,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4020,6 +4947,19 @@ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4069,6 +5009,19 @@ "schema": { "$ref": "#/definitions/loantype.CreateLoanTypeDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4115,6 +5068,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4177,6 +5143,19 @@ "schema": { "$ref": "#/definitions/loantype.UpdateLoanTypeDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4227,6 +5206,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4298,6 +5290,19 @@ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4347,6 +5352,19 @@ "schema": { "$ref": "#/definitions/loansdocument.CreateLoanDocumentDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4393,6 +5411,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4455,6 +5486,19 @@ "schema": { "$ref": "#/definitions/loansdocument.UpdateLoanDocumentDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4505,6 +5549,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4569,6 +5626,19 @@ "schema": { "$ref": "#/definitions/loansdocument.UpdateLoanDocumentActiveDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4634,6 +5704,19 @@ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4683,6 +5766,19 @@ "schema": { "$ref": "#/definitions/loansrepayment.CreateLoanRepaymentDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4729,6 +5825,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4791,6 +5900,19 @@ "schema": { "$ref": "#/definitions/loansrepayment.UpdateLoanRepaymentDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4841,6 +5963,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4893,6 +6028,19 @@ "schema": { "$ref": "#/definitions/auth.LoginDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -4958,6 +6106,19 @@ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5007,6 +6168,19 @@ "schema": { "$ref": "#/definitions/paymentcard.CreatePaymentCardDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5053,6 +6227,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5115,6 +6302,19 @@ "schema": { "$ref": "#/definitions/paymentcard.UpdatePaymentCardDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5165,6 +6365,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5229,6 +6442,19 @@ "schema": { "$ref": "#/definitions/paymentcard.UpdatePaymentCardActiveDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5342,6 +6568,19 @@ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5388,6 +6627,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5446,6 +6698,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5507,6 +6772,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5568,6 +6846,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5629,6 +6920,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5683,6 +6987,21 @@ "payment-settings" ], "summary": "Get payment settings", + "parameters": [ + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" + } + ], "responses": { "200": { "description": "OK", @@ -5724,6 +7043,19 @@ "schema": { "$ref": "#/definitions/paymentsettings.UpdatePaymentSettingsDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5769,6 +7101,19 @@ "description": "Filter by code, name or text", "name": "search", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5809,6 +7154,19 @@ "name": "code", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5865,6 +7223,19 @@ "schema": { "$ref": "#/definitions/paymenttexts.UpdatePaymentTextDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5915,6 +7286,19 @@ "name": "code", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -5960,6 +7344,21 @@ "permission" ], "summary": "List permissions", + "parameters": [ + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" + } + ], "responses": { "200": { "description": "OK", @@ -5985,6 +7384,21 @@ "auth" ], "summary": "Get profile", + "parameters": [ + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" + } + ], "responses": { "200": { "description": "OK", @@ -6038,6 +7452,19 @@ "schema": { "$ref": "#/definitions/auth.UpdateProfileDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6115,6 +7542,19 @@ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6164,6 +7604,19 @@ "schema": { "$ref": "#/definitions/province.CreateProvinceDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6210,6 +7663,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6272,6 +7738,19 @@ "schema": { "$ref": "#/definitions/province.UpdateProvinceDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6322,6 +7801,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6387,6 +7879,19 @@ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6436,6 +7941,19 @@ "schema": { "$ref": "#/definitions/reasonscard.CreateReasonCardDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6482,6 +8000,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6544,6 +8075,19 @@ "schema": { "$ref": "#/definitions/reasonscard.UpdateReasonCardDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6594,6 +8138,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6646,6 +8203,19 @@ "schema": { "$ref": "#/definitions/auth.RegisterDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6692,6 +8262,19 @@ "schema": { "$ref": "#/definitions/auth.VerifyDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6751,6 +8334,19 @@ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6800,6 +8396,19 @@ "schema": { "$ref": "#/definitions/role.CreateRoleDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6858,6 +8467,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6920,6 +8542,19 @@ "schema": { "$ref": "#/definitions/role.UpdateRoleDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -6976,6 +8611,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7040,6 +8688,19 @@ "schema": { "$ref": "#/definitions/auth.RefreshTokenDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7105,6 +8766,19 @@ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7154,6 +8828,19 @@ "schema": { "$ref": "#/definitions/user.CreateUserDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7225,6 +8912,19 @@ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7290,6 +8990,19 @@ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7336,6 +9049,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7398,6 +9124,19 @@ "schema": { "$ref": "#/definitions/user.UpdateUserDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7460,6 +9199,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7536,6 +9288,19 @@ "schema": { "$ref": "#/definitions/user.SetUserRoleDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7643,6 +9408,19 @@ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7692,6 +9470,19 @@ "schema": { "$ref": "#/definitions/visamaster.CreateVisaMasterPaymentOrderDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7733,6 +9524,19 @@ "name": "paymentId", "in": "query", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7804,6 +9608,19 @@ "description": "Items per page", "name": "limit", "in": "query" + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7850,6 +9667,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7912,6 +9742,19 @@ "schema": { "$ref": "#/definitions/visamaster.UpdateVisaMasterPaymentOrderDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -7962,6 +9805,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -8026,6 +9882,19 @@ "schema": { "$ref": "#/definitions/visamasterpay.PayOrderDTO" } + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -8078,6 +9947,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { @@ -8130,6 +10012,19 @@ "name": "id", "in": "path", "required": true + }, + { + "enum": [ + "tm", + "ru", + "en", + "all" + ], + "type": "string", + "default": "tm", + "description": "Language of localized fields; all returns the full {en, ru, tm} objects", + "name": "lang", + "in": "query" } ], "responses": { diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 36a90ae..60be998 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -2194,6 +2194,17 @@ paths: in: query name: limit type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -2223,6 +2234,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -2269,6 +2291,17 @@ paths: in: query name: limit type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -2291,6 +2324,18 @@ paths: - backups post: description: Runs pg_dump and stores the resulting .sql file + parameters: + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -2316,6 +2361,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -2348,6 +2404,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -2381,6 +2448,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/sql responses: @@ -2419,6 +2497,17 @@ paths: required: true schema: $ref: '#/definitions/userbranch.CreateUserBranchDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -2448,6 +2537,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -2502,6 +2602,17 @@ paths: in: query name: limit type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -2533,6 +2644,17 @@ paths: required: true schema: $ref: '#/definitions/branches.CreateBranchDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -2562,6 +2684,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -2594,6 +2727,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -2634,6 +2778,17 @@ paths: required: true schema: $ref: '#/definitions/branches.UpdateBranchDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -2673,6 +2828,17 @@ paths: in: query name: active type: boolean + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -2702,6 +2868,17 @@ paths: in: query name: active type: boolean + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -2748,6 +2925,17 @@ paths: in: query name: limit type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -2779,6 +2967,17 @@ paths: required: true schema: $ref: '#/definitions/cardbalance.CreateCardBalanceDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -2808,6 +3007,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -2840,6 +3050,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -2880,6 +3101,17 @@ paths: required: true schema: $ref: '#/definitions/cardbalance.UpdateCardBalanceDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -2942,6 +3174,17 @@ paths: in: query name: limit type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -2973,6 +3216,17 @@ paths: required: true schema: $ref: '#/definitions/cardorder.CreateCardOrderDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -3002,6 +3256,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -3034,6 +3299,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -3074,6 +3350,17 @@ paths: required: true schema: $ref: '#/definitions/cardorder.UpdateCardOrderDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -3132,6 +3419,17 @@ paths: in: query name: limit type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -3163,6 +3461,17 @@ paths: required: true schema: $ref: '#/definitions/cardpinorders.CreateCardPinOrderDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -3192,6 +3501,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -3224,6 +3544,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -3264,6 +3595,17 @@ paths: required: true schema: $ref: '#/definitions/cardpinorders.UpdateCardPinOrderDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -3323,6 +3665,17 @@ paths: in: query name: limit type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -3354,6 +3707,17 @@ paths: required: true schema: $ref: '#/definitions/cardrekwizit.CreateCardRekwizitOrderDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -3383,6 +3747,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -3415,6 +3790,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -3455,6 +3841,17 @@ paths: required: true schema: $ref: '#/definitions/cardrekwizit.UpdateCardRekwizitOrderDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -3501,6 +3898,17 @@ paths: in: query name: limit type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -3532,6 +3940,17 @@ paths: required: true schema: $ref: '#/definitions/cards.CreateCardDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -3561,6 +3980,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -3593,6 +4023,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -3633,6 +4074,17 @@ paths: required: true schema: $ref: '#/definitions/cards.UpdateCardDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -3683,6 +4135,17 @@ paths: in: query name: limit type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -3714,6 +4177,17 @@ paths: required: true schema: $ref: '#/definitions/currency.CreateCurrencyDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -3747,6 +4221,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -3779,6 +4264,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -3819,6 +4315,17 @@ paths: required: true schema: $ref: '#/definitions/currency.UpdateCurrencyDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -3864,6 +4371,17 @@ paths: in: query name: to type: string + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -3900,6 +4418,17 @@ paths: in: query name: to type: string + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -3935,6 +4464,17 @@ paths: in: query name: to type: string + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -3972,6 +4512,17 @@ paths: in: query name: to type: string + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4007,6 +4558,17 @@ paths: in: query name: to type: string + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4049,6 +4611,17 @@ paths: in: query name: operator_limit type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4083,6 +4656,17 @@ paths: in: query name: recent_limit type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4108,6 +4692,18 @@ paths: description: Returns host CPU, RAM and disk usage plus the API process's own memory and uptime. CPU usage is sampled over ~250ms; host fields are null when the OS cannot report them. + parameters: + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4140,6 +4736,17 @@ paths: name: file required: true type: file + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4168,6 +4775,17 @@ paths: name: file_name required: true type: string + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/octet-stream responses: @@ -4198,6 +4816,17 @@ paths: name: id required: true type: string + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4225,6 +4854,17 @@ paths: required: true schema: $ref: '#/definitions/auth.ForgotPasswordDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4255,6 +4895,17 @@ paths: required: true schema: $ref: '#/definitions/auth.ResetPasswordDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4304,6 +4955,17 @@ paths: in: query name: limit type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4335,6 +4997,17 @@ paths: required: true schema: $ref: '#/definitions/loanorders.CreateLoanOrderDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4364,6 +5037,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4396,6 +5080,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4436,6 +5131,17 @@ paths: required: true schema: $ref: '#/definitions/loanorders.UpdateLoanOrderDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4490,6 +5196,17 @@ paths: in: query name: limit type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4544,6 +5261,17 @@ paths: in: query name: limit type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4575,6 +5303,17 @@ paths: required: true schema: $ref: '#/definitions/loanpaidletter.CreateLoanPaidLetterDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4604,6 +5343,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4636,6 +5386,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4676,6 +5437,17 @@ paths: required: true schema: $ref: '#/definitions/loanpaidletter.UpdateLoanPaidLetterDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4715,6 +5487,17 @@ paths: in: query name: active type: boolean + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4753,6 +5536,17 @@ paths: in: query name: limit type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4784,6 +5578,17 @@ paths: required: true schema: $ref: '#/definitions/loantype.CreateLoanTypeDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4813,6 +5618,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4845,6 +5661,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4885,6 +5712,17 @@ paths: required: true schema: $ref: '#/definitions/loantype.UpdateLoanTypeDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4931,6 +5769,17 @@ paths: in: query name: limit type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4962,6 +5811,17 @@ paths: required: true schema: $ref: '#/definitions/loansdocument.CreateLoanDocumentDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -4991,6 +5851,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -5023,6 +5894,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -5063,6 +5945,17 @@ paths: required: true schema: $ref: '#/definitions/loansdocument.UpdateLoanDocumentDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -5104,6 +5997,17 @@ paths: required: true schema: $ref: '#/definitions/loansdocument.UpdateLoanDocumentActiveDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -5146,6 +6050,17 @@ paths: in: query name: limit type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -5177,6 +6092,17 @@ paths: required: true schema: $ref: '#/definitions/loansrepayment.CreateLoanRepaymentDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -5206,6 +6132,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -5238,6 +6175,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -5278,6 +6226,17 @@ paths: required: true schema: $ref: '#/definitions/loansrepayment.UpdateLoanRepaymentDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -5314,6 +6273,17 @@ paths: required: true schema: $ref: '#/definitions/auth.LoginDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -5354,6 +6324,17 @@ paths: in: query name: limit type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -5385,6 +6366,17 @@ paths: required: true schema: $ref: '#/definitions/paymentcard.CreatePaymentCardDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -5414,6 +6406,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -5446,6 +6449,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -5486,6 +6500,17 @@ paths: required: true schema: $ref: '#/definitions/paymentcard.UpdatePaymentCardDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -5527,6 +6552,17 @@ paths: required: true schema: $ref: '#/definitions/paymentcard.UpdatePaymentCardActiveDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -5604,6 +6640,17 @@ paths: in: query name: limit type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -5638,6 +6685,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -5682,6 +6740,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -5723,6 +6792,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -5764,6 +6844,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -5806,6 +6897,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -5840,6 +6942,18 @@ paths: get: description: Returns the admin-configurable bank and GBÜS commission fees used on loan payments + parameters: + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -5867,6 +6981,17 @@ paths: required: true schema: $ref: '#/definitions/paymentsettings.UpdatePaymentSettingsDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -5897,6 +7022,17 @@ paths: in: query name: search type: string + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -5923,6 +7059,17 @@ paths: name: code required: true type: string + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -5957,6 +7104,17 @@ paths: name: code required: true type: string + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -5994,6 +7152,17 @@ paths: required: true schema: $ref: '#/definitions/paymenttexts.UpdatePaymentTextDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -6023,6 +7192,18 @@ paths: description: 'Returns the permission catalog: one code per module, in display order. Holding a code grants read and write in that module; the role''s scope decides which records.' + parameters: + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -6039,6 +7220,18 @@ paths: get: description: Returns the authenticated user's profile with role, branches, and permissions grouped by saha (module) + parameters: + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -6074,6 +7267,17 @@ paths: required: true schema: $ref: '#/definitions/auth.UpdateProfileDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -6124,6 +7328,17 @@ paths: in: query name: limit type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -6155,6 +7370,17 @@ paths: required: true schema: $ref: '#/definitions/province.CreateProvinceDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -6184,6 +7410,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -6216,6 +7453,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -6256,6 +7504,17 @@ paths: required: true schema: $ref: '#/definitions/province.UpdateProvinceDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -6298,6 +7557,17 @@ paths: in: query name: limit type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -6329,6 +7599,17 @@ paths: required: true schema: $ref: '#/definitions/reasonscard.CreateReasonCardDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -6358,6 +7639,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -6390,6 +7682,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -6430,6 +7733,17 @@ paths: required: true schema: $ref: '#/definitions/reasonscard.UpdateReasonCardDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -6467,6 +7781,17 @@ paths: required: true schema: $ref: '#/definitions/auth.RegisterDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -6497,6 +7822,17 @@ paths: required: true schema: $ref: '#/definitions/auth.VerifyDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -6533,6 +7869,17 @@ paths: in: query name: limit type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -6566,6 +7913,17 @@ paths: required: true schema: $ref: '#/definitions/role.CreateRoleDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -6604,6 +7962,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -6644,6 +8013,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -6686,6 +8066,17 @@ paths: required: true schema: $ref: '#/definitions/role.UpdateRoleDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -6726,6 +8117,17 @@ paths: required: true schema: $ref: '#/definitions/auth.RefreshTokenDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -6768,6 +8170,17 @@ paths: in: query name: limit type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -6801,6 +8214,17 @@ paths: required: true schema: $ref: '#/definitions/user.CreateUserDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -6835,6 +8259,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -6876,6 +8311,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -6918,6 +8364,17 @@ paths: required: true schema: $ref: '#/definitions/user.UpdateUserDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -6967,6 +8424,17 @@ paths: required: true schema: $ref: '#/definitions/user.SetUserRoleDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -7022,6 +8490,17 @@ paths: in: query name: limit type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -7065,6 +8544,17 @@ paths: in: query name: limit type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -7124,6 +8614,17 @@ paths: in: query name: limit type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -7155,6 +8656,17 @@ paths: required: true schema: $ref: '#/definitions/visamaster.CreateVisaMasterPaymentOrderDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -7184,6 +8696,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -7217,6 +8740,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -7257,6 +8791,17 @@ paths: required: true schema: $ref: '#/definitions/visamaster.UpdateVisaMasterPaymentOrderDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -7300,6 +8845,17 @@ paths: required: true schema: $ref: '#/definitions/visamasterpay.PayOrderDTO' + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -7334,6 +8890,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -7370,6 +8937,17 @@ paths: name: id required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -7404,6 +8982,17 @@ paths: name: paymentId required: true type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: @@ -7448,6 +9037,17 @@ paths: in: query name: limit type: integer + - default: tm + description: Language of localized fields; all returns the full {en, ru, tm} + objects + enum: + - tm + - ru + - en + - all + in: query + name: lang + type: string produces: - application/json responses: diff --git a/internal/analytics/handler.go b/internal/analytics/handler.go index 5b4cb48..7affe4a 100644 --- a/internal/analytics/handler.go +++ b/internal/analytics/handler.go @@ -52,6 +52,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Security BearerAuth // @Param from query string false "Start date YYYY-MM-DD (inclusive)" default(Jan 1 of current year) // @Param to query string false "End date YYYY-MM-DD (inclusive)" default(today) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -86,6 +87,7 @@ func (h *handler) finance(c *gin.Context) { // @Security BearerAuth // @Param from query string false "Start date YYYY-MM-DD (inclusive)" default(Jan 1 of current year) // @Param to query string false "End date YYYY-MM-DD (inclusive)" default(today) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -111,6 +113,7 @@ func (h *handler) backlog(c *gin.Context) { // @Security BearerAuth // @Param from query string false "Start date YYYY-MM-DD (inclusive)" default(Jan 1 of current year) // @Param to query string false "End date YYYY-MM-DD (inclusive)" default(today) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -136,6 +139,7 @@ func (h *handler) branches(c *gin.Context) { // @Security BearerAuth // @Param from query string false "Start date YYYY-MM-DD (inclusive)" default(Jan 1 of current year) // @Param to query string false "End date YYYY-MM-DD (inclusive)" default(today) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -161,6 +165,7 @@ func (h *handler) products(c *gin.Context) { // @Security BearerAuth // @Param from query string false "Start date YYYY-MM-DD (inclusive)" default(Jan 1 of current year) // @Param to query string false "End date YYYY-MM-DD (inclusive)" default(today) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -187,6 +192,7 @@ func (h *handler) customers(c *gin.Context) { // @Param from query string false "Start date YYYY-MM-DD (inclusive)" default(Jan 1 of current year) // @Param to query string false "End date YYYY-MM-DD (inclusive)" default(today) // @Param operator_limit query int false "Number of operators to return" default(10) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError diff --git a/internal/backup/handler.go b/internal/backup/handler.go index b79d959..3413756 100644 --- a/internal/backup/handler.go +++ b/internal/backup/handler.go @@ -46,6 +46,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Param status query string false "Filter by status (pending, completed, failed)" // @Param page query int false "Page number" default(1) // @Param limit query int false "Items per page" default(10) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -74,6 +75,7 @@ func (h *handler) list(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Backup ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -106,6 +108,7 @@ func (h *handler) getByID(c *gin.Context) { // @Tags backups // @Produce json // @Security BearerAuth +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 201 {object} appresult.AppSuccess // @Failure 500 {object} appresult.AppError // @Router /backups [post] @@ -127,6 +130,7 @@ func (h *handler) create(c *gin.Context) { // @Produce application/sql // @Security BearerAuth // @Param id path int true "Backup ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {file} file // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -168,6 +172,7 @@ func (h *handler) download(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Backup ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError diff --git a/internal/cards/cardbalance/handler.go b/internal/cards/cardbalance/handler.go index d322ae5..083a417 100644 --- a/internal/cards/cardbalance/handler.go +++ b/internal/cards/cardbalance/handler.go @@ -46,6 +46,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Param created_by query int false "Filter by creator user ID" // @Param page query int false "Page number" default(1) // @Param limit query int false "Items per page" default(10) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -74,6 +75,7 @@ func (h *handler) list(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Card balance ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -111,6 +113,7 @@ func (h *handler) getByID(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param body body CreateCardBalanceDTO true "Card balance payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 201 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -141,6 +144,7 @@ func (h *handler) create(c *gin.Context) { // @Security BearerAuth // @Param id path int true "Card balance ID" // @Param body body UpdateCardBalanceDTO true "Card balance payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -184,6 +188,7 @@ func (h *handler) update(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Card balance ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError diff --git a/internal/cards/cardorder/handler.go b/internal/cards/cardorder/handler.go index e8de076..9c2d36b 100644 --- a/internal/cards/cardorder/handler.go +++ b/internal/cards/cardorder/handler.go @@ -49,6 +49,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Param region query string false "Filter by region" // @Param page query int false "Page number" default(1) // @Param limit query int false "Items per page" default(10) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -77,6 +78,7 @@ func (h *handler) list(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Card order ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -114,6 +116,7 @@ func (h *handler) getByID(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param body body CreateCardOrderDTO true "Card order payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 201 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -145,6 +148,7 @@ func (h *handler) create(c *gin.Context) { // @Security BearerAuth // @Param id path int true "Card order ID" // @Param body body UpdateCardOrderDTO true "Card order payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -189,6 +193,7 @@ func (h *handler) update(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Card order ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError diff --git a/internal/cards/cardpinorders/handler.go b/internal/cards/cardpinorders/handler.go index 866d049..b22f02a 100644 --- a/internal/cards/cardpinorders/handler.go +++ b/internal/cards/cardpinorders/handler.go @@ -48,6 +48,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Param region query string false "Filter by region" // @Param page query int false "Page number" default(1) // @Param limit query int false "Items per page" default(10) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -76,6 +77,7 @@ func (h *handler) list(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Card pin order ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -113,6 +115,7 @@ func (h *handler) getByID(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param body body CreateCardPinOrderDTO true "Card pin order payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 201 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -143,6 +146,7 @@ func (h *handler) create(c *gin.Context) { // @Security BearerAuth // @Param id path int true "Card pin order ID" // @Param body body UpdateCardPinOrderDTO true "Card pin order payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -186,6 +190,7 @@ func (h *handler) update(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Card pin order ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError diff --git a/internal/cards/cardrekwizit/handler.go b/internal/cards/cardrekwizit/handler.go index 44caaa1..0f548f0 100644 --- a/internal/cards/cardrekwizit/handler.go +++ b/internal/cards/cardrekwizit/handler.go @@ -48,6 +48,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Param region query string false "Filter by region" // @Param page query int false "Page number" default(1) // @Param limit query int false "Items per page" default(10) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -76,6 +77,7 @@ func (h *handler) list(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Card rekwizit order ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -113,6 +115,7 @@ func (h *handler) getByID(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param body body CreateCardRekwizitOrderDTO true "Card rekwizit order payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 201 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -143,6 +146,7 @@ func (h *handler) create(c *gin.Context) { // @Security BearerAuth // @Param id path int true "Card rekwizit order ID" // @Param body body UpdateCardRekwizitOrderDTO true "Card rekwizit order payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -186,6 +190,7 @@ func (h *handler) update(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Card rekwizit order ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError diff --git a/internal/cards/cards/handler.go b/internal/cards/cards/handler.go index 3cd2e1d..27cba4e 100644 --- a/internal/cards/cards/handler.go +++ b/internal/cards/cards/handler.go @@ -45,6 +45,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Param type query string false "Filter by card type" // @Param page query int false "Page number" default(1) // @Param limit query int false "Items per page" default(10) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -73,6 +74,7 @@ func (h *handler) list(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Card ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -117,6 +119,7 @@ func (h *handler) getByID(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param body body CreateCardDTO true "Card payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 201 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -147,6 +150,7 @@ func (h *handler) create(c *gin.Context) { // @Security BearerAuth // @Param id path int true "Card ID" // @Param body body UpdateCardDTO true "Card payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -190,6 +194,7 @@ func (h *handler) update(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Card ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError diff --git a/internal/cards/paymentcard/handler.go b/internal/cards/paymentcard/handler.go index 1627e89..97db1b3 100644 --- a/internal/cards/paymentcard/handler.go +++ b/internal/cards/paymentcard/handler.go @@ -47,6 +47,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Param active query bool false "Filter by active" // @Param page query int false "Page number" default(1) // @Param limit query int false "Items per page" default(10) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -75,6 +76,7 @@ func (h *handler) list(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Payment card ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -109,6 +111,7 @@ func (h *handler) getByID(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param body body CreatePaymentCardDTO true "Payment card payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 201 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -139,6 +142,7 @@ func (h *handler) create(c *gin.Context) { // @Security BearerAuth // @Param id path int true "Payment card ID" // @Param body body UpdatePaymentCardDTO true "Payment card payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -180,6 +184,7 @@ func (h *handler) update(c *gin.Context) { // @Security BearerAuth // @Param id path int true "Payment card ID" // @Param body body UpdatePaymentCardActiveDTO true "Active payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -219,6 +224,7 @@ func (h *handler) updateActive(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Payment card ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError diff --git a/internal/cards/reasonscard/handler.go b/internal/cards/reasonscard/handler.go index 5ef4238..e6e9ac8 100644 --- a/internal/cards/reasonscard/handler.go +++ b/internal/cards/reasonscard/handler.go @@ -44,6 +44,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Param reason_name query string false "Filter by title (en, ru, tm)" // @Param page query int false "Page number" default(1) // @Param limit query int false "Items per page" default(10) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -72,6 +73,7 @@ func (h *handler) list(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Reason card ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -106,6 +108,7 @@ func (h *handler) getByID(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param body body CreateReasonCardDTO true "Reason card payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 201 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -136,6 +139,7 @@ func (h *handler) create(c *gin.Context) { // @Security BearerAuth // @Param id path int true "Reason card ID" // @Param body body UpdateReasonCardDTO true "Reason card payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -175,6 +179,7 @@ func (h *handler) update(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Reason card ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError diff --git a/internal/cards/visamaster/handler.go b/internal/cards/visamaster/handler.go index e834310..f277e3e 100644 --- a/internal/cards/visamaster/handler.go +++ b/internal/cards/visamaster/handler.go @@ -54,6 +54,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Param region query string false "Filter by region" // @Param page query int false "Page number" default(1) // @Param limit query int false "Items per page" default(10) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -81,6 +82,7 @@ func (h *handler) list(c *gin.Context) { // @Param region query string false "Filter by region" // @Param page query int false "Page number" default(1) // @Param limit query int false "Items per page" default(10) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -113,6 +115,7 @@ func (h *handler) respondList(c *gin.Context, filter ListFilter) { // @Produce json // @Security BearerAuth // @Param id path int true "Visa/master payment order ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -150,6 +153,7 @@ func (h *handler) getByID(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param body body CreateVisaMasterPaymentOrderDTO true "Visa/master payment order payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 201 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -180,6 +184,7 @@ func (h *handler) create(c *gin.Context) { // @Security BearerAuth // @Param id path int true "Visa/master payment order ID" // @Param body body UpdateVisaMasterPaymentOrderDTO true "Visa/master payment order payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -223,6 +228,7 @@ func (h *handler) update(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Visa/master payment order ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError diff --git a/internal/currency/handler.go b/internal/currency/handler.go index 4a2a6db..f6ebd2a 100644 --- a/internal/currency/handler.go +++ b/internal/currency/handler.go @@ -48,6 +48,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Param currency_to query string false "Filter by target currency" // @Param page query int false "Page number" default(1) // @Param limit query int false "Items per page" default(10) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} ListCurrencyDTO // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -76,6 +77,7 @@ func (h *handler) list(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Currency ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} CurrencyDTO // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -110,6 +112,7 @@ func (h *handler) getByID(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param body body CreateCurrencyDTO true "Currency rate payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 201 {object} CurrencyDTO // @Failure 400 {object} appresult.AppError // @Failure 409 {object} appresult.AppError @@ -147,6 +150,7 @@ func (h *handler) create(c *gin.Context) { // @Security BearerAuth // @Param id path int true "Currency ID" // @Param body body UpdateCurrencyDTO true "Currency rate payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} CurrencyDTO // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -193,6 +197,7 @@ func (h *handler) update(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Currency ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError diff --git a/internal/dashboard/handler.go b/internal/dashboard/handler.go index 05c299c..d43f62a 100644 --- a/internal/dashboard/handler.go +++ b/internal/dashboard/handler.go @@ -47,6 +47,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Security BearerAuth // @Param year query int false "Year for the monthly trend chart" default(current year) // @Param recent_limit query int false "Number of recent activity items to return" default(10) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -75,6 +76,7 @@ func (h *handler) overview(c *gin.Context) { // @Tags dashboard // @Produce json // @Security BearerAuth +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess{data=sysstats.Stats} // @Failure 500 {object} appresult.AppError // @Router /dashboard/server-stats [get] diff --git a/internal/identity/activitylog/handler.go b/internal/identity/activitylog/handler.go index 6d32d89..cb494f7 100644 --- a/internal/identity/activitylog/handler.go +++ b/internal/identity/activitylog/handler.go @@ -47,6 +47,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Param action query string false "Filter by action (create, update, delete)" // @Param page query int false "Page number" default(1) // @Param limit query int false "Items per page" default(10) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -75,6 +76,7 @@ func (h *handler) list(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Activity log ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError diff --git a/internal/identity/auth/handler.go b/internal/identity/auth/handler.go index a00ecfd..47687d9 100755 --- a/internal/identity/auth/handler.go +++ b/internal/identity/auth/handler.go @@ -55,6 +55,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Accept json // @Produce json // @Param body body LoginDTO true "Login payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 401 {object} appresult.AppError @@ -91,6 +92,7 @@ func (h *handler) login(c *gin.Context) { // @Accept json // @Produce json // @Param body body RegisterDTO true "Registration payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 409 {object} appresult.AppError @@ -118,6 +120,7 @@ func (h *handler) register(c *gin.Context) { // @Accept json // @Produce json // @Param body body VerifyDTO true "Verification payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 409 {object} appresult.AppError @@ -145,6 +148,7 @@ func (h *handler) verify(c *gin.Context) { // @Accept json // @Produce json // @Param body body ForgotPasswordDTO true "Forgot password payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -172,6 +176,7 @@ func (h *handler) forgotPassword(c *gin.Context) { // @Accept json // @Produce json // @Param body body ResetPasswordDTO true "Reset password payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -217,6 +222,7 @@ func (h *handler) respondRegisterError(c *gin.Context, err error) { // @Accept json // @Produce json // @Param body body RefreshTokenDTO true "Refresh token payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 401 {object} appresult.AppError @@ -247,6 +253,7 @@ func (h *handler) refreshToken(c *gin.Context) { // @Tags auth // @Produce json // @Security BearerAuth +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 401 {object} appresult.AppError @@ -277,6 +284,7 @@ func (h *handler) getProfile(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param body body UpdateProfileDTO true "Profile payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 401 {object} appresult.AppError diff --git a/internal/identity/permission/handler.go b/internal/identity/permission/handler.go index 27fa166..8f77d2e 100644 --- a/internal/identity/permission/handler.go +++ b/internal/identity/permission/handler.go @@ -33,6 +33,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Tags permission // @Produce json // @Security BearerAuth +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Router /permissions [get] func (h *handler) list(c *gin.Context) { diff --git a/internal/identity/role/handler.go b/internal/identity/role/handler.go index 6d67857..660ef06 100644 --- a/internal/identity/role/handler.go +++ b/internal/identity/role/handler.go @@ -46,6 +46,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Param role_name query string false "Filter by name or code" // @Param page query int false "Page number" default(1) // @Param limit query int false "Items per page" default(10) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -74,6 +75,7 @@ func (h *handler) list(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Role ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -108,6 +110,7 @@ func (h *handler) getByID(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param body body CreateRoleDTO true "Role payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 201 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 403 {object} appresult.AppError @@ -151,6 +154,7 @@ func (h *handler) create(c *gin.Context) { // @Security BearerAuth // @Param id path int true "Role ID" // @Param body body UpdateRoleDTO true "Role payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 403 {object} appresult.AppError @@ -202,6 +206,7 @@ func (h *handler) update(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Role ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 403 {object} appresult.AppError diff --git a/internal/identity/user/handler.go b/internal/identity/user/handler.go index 865a350..e79a416 100644 --- a/internal/identity/user/handler.go +++ b/internal/identity/user/handler.go @@ -73,6 +73,7 @@ func (h *handler) RegisterPublic(engine *gin.Engine) { // @Param username query string false "Alias for search" // @Param page query int false "Page number" default(1) // @Param limit query int false "Items per page" default(10) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -106,6 +107,7 @@ func (h *handler) list(c *gin.Context) { // @Param username query string false "Alias for search" // @Param page query int false "Page number" default(1) // @Param limit query int false "Items per page" default(10) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -137,6 +139,7 @@ func (h *handler) listClients(c *gin.Context) { // @Param username query string false "Alias for search" // @Param page query int false "Page number" default(1) // @Param limit query int false "Items per page" default(10) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -166,6 +169,7 @@ func (h *handler) listStaff(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "User ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -203,6 +207,7 @@ func (h *handler) getByID(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param body body CreateUserDTO true "User payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 201 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 403 {object} appresult.AppError @@ -242,6 +247,7 @@ func (h *handler) create(c *gin.Context) { // @Security BearerAuth // @Param id path int true "User ID" // @Param body body UpdateUserDTO true "User payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 403 {object} appresult.AppError @@ -303,6 +309,7 @@ func (h *handler) update(c *gin.Context) { // @Security BearerAuth // @Param id path int true "User ID" // @Param body body SetUserRoleDTO true "Role" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 403 {object} appresult.AppError @@ -364,6 +371,7 @@ func (h *handler) setRole(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "User ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 403 {object} appresult.AppError @@ -547,6 +555,7 @@ func parseListFilter(c *gin.Context) (ListFilter, bool) { // @Param file formData file true "this is a test file" // // @Security BearerAuth +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -589,6 +598,7 @@ func (h *handler) fileUpload(c *gin.Context) { // @Tags file-upload // @Produce octet-stream // @Param file_name path string true "object name" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {file} binary // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -631,6 +641,7 @@ func (h *handler) getFile(c *gin.Context) { // @Produce json // @Param id path string true "object name" // @Security BearerAuth +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 500 {object} appresult.AppError // @Router /file/{id} [delete] diff --git a/internal/identity/userbranch/handler.go b/internal/identity/userbranch/handler.go index 423a075..b9e3e78 100644 --- a/internal/identity/userbranch/handler.go +++ b/internal/identity/userbranch/handler.go @@ -40,6 +40,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Produce json // @Security BearerAuth // @Param body body CreateUserBranchDTO true "Branch-user payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 201 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -72,6 +73,7 @@ func (h *handler) create(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Branch-user ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError diff --git a/internal/lending/loanorders/handler.go b/internal/lending/loanorders/handler.go index f31ae97..91674b2 100644 --- a/internal/lending/loanorders/handler.go +++ b/internal/lending/loanorders/handler.go @@ -50,6 +50,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Param region query string false "Filter by region" // @Param page query int false "Page number" default(1) // @Param limit query int false "Items per page" default(10) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -76,6 +77,7 @@ func (h *handler) list(c *gin.Context) { // @Param region query string false "Filter by region" // @Param page query int false "Page number" default(1) // @Param limit query int false "Items per page" default(10) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -108,6 +110,7 @@ func (h *handler) respondList(c *gin.Context, filter ListFilter) { // @Produce json // @Security BearerAuth // @Param id path int true "Loan order ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -145,6 +148,7 @@ func (h *handler) getByID(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param body body CreateLoanOrderDTO true "Loan order payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 201 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -179,6 +183,7 @@ func (h *handler) create(c *gin.Context) { // @Security BearerAuth // @Param id path int true "Loan order ID" // @Param body body UpdateLoanOrderDTO true "Loan order payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -222,6 +227,7 @@ func (h *handler) update(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Loan order ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError diff --git a/internal/lending/loanpaidletter/handler.go b/internal/lending/loanpaidletter/handler.go index 3ef5a34..4fa7a2e 100644 --- a/internal/lending/loanpaidletter/handler.go +++ b/internal/lending/loanpaidletter/handler.go @@ -51,6 +51,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Param region query string false "Filter by region" // @Param page query int false "Page number" default(1) // @Param limit query int false "Items per page" default(10) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -80,6 +81,7 @@ func (h *handler) list(c *gin.Context) { // @Security BearerAuth // @Param province_id query int true "Province ID" // @Param active query bool false "Only active branches" default(true) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -118,6 +120,7 @@ func (h *handler) listBranchesByProvince(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Loan paid off letter ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -155,6 +158,7 @@ func (h *handler) getByID(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param body body CreateLoanPaidLetterDTO true "Loan paid off letter payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 201 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -185,6 +189,7 @@ func (h *handler) create(c *gin.Context) { // @Security BearerAuth // @Param id path int true "Loan paid off letter ID" // @Param body body UpdateLoanPaidLetterDTO true "Loan paid off letter payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -228,6 +233,7 @@ func (h *handler) update(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Loan paid off letter ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError diff --git a/internal/lending/loansdocument/handler.go b/internal/lending/loansdocument/handler.go index d3b98ff..0717801 100644 --- a/internal/lending/loansdocument/handler.go +++ b/internal/lending/loansdocument/handler.go @@ -48,6 +48,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Param active query bool false "Filter by active" // @Param page query int false "Page number" default(1) // @Param limit query int false "Items per page" default(10) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -76,6 +77,7 @@ func (h *handler) list(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Loan document ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -110,6 +112,7 @@ func (h *handler) getByID(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param body body CreateLoanDocumentDTO true "Loan document payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 201 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -140,6 +143,7 @@ func (h *handler) create(c *gin.Context) { // @Security BearerAuth // @Param id path int true "Loan document ID" // @Param body body UpdateLoanDocumentDTO true "Loan document payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -181,6 +185,7 @@ func (h *handler) update(c *gin.Context) { // @Security BearerAuth // @Param id path int true "Loan document ID" // @Param body body UpdateLoanDocumentActiveDTO true "Active payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -220,6 +225,7 @@ func (h *handler) updateActive(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Loan document ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError diff --git a/internal/lending/loansrepayment/handler.go b/internal/lending/loansrepayment/handler.go index f33d2dd..72cbfbc 100644 --- a/internal/lending/loansrepayment/handler.go +++ b/internal/lending/loansrepayment/handler.go @@ -46,6 +46,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Param passport_id query string false "Filter by passport ID" // @Param page query int false "Page number" default(1) // @Param limit query int false "Items per page" default(10) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -74,6 +75,7 @@ func (h *handler) list(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Loan repayment ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -111,6 +113,7 @@ func (h *handler) getByID(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param body body CreateLoanRepaymentDTO true "Loan repayment payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 201 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -141,6 +144,7 @@ func (h *handler) create(c *gin.Context) { // @Security BearerAuth // @Param id path int true "Loan repayment ID" // @Param body body UpdateLoanRepaymentDTO true "Loan repayment payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -184,6 +188,7 @@ func (h *handler) update(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Loan repayment ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError diff --git a/internal/lending/loantype/handler.go b/internal/lending/loantype/handler.go index 4de27b4..baf99c8 100644 --- a/internal/lending/loantype/handler.go +++ b/internal/lending/loantype/handler.go @@ -46,6 +46,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Param loan_type_name query string false "Filter by title (en, ru, tm)" // @Param page query int false "Page number" default(1) // @Param limit query int false "Items per page" default(10) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -74,6 +75,7 @@ func (h *handler) list(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Loan type ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -108,6 +110,7 @@ func (h *handler) getByID(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param body body CreateLoanTypeDTO true "Loan type payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 201 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -138,6 +141,7 @@ func (h *handler) create(c *gin.Context) { // @Security BearerAuth // @Param id path int true "Loan type ID" // @Param body body UpdateLoanTypeDTO true "Loan type payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -177,6 +181,7 @@ func (h *handler) update(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Loan type ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError diff --git a/internal/org/branches/handler.go b/internal/org/branches/handler.go index ab39ae2..8eb7cfa 100644 --- a/internal/org/branches/handler.go +++ b/internal/org/branches/handler.go @@ -53,6 +53,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Param unique_code query string false "Filter by unique code" // @Param page query int false "Page number" default(1) // @Param limit query int false "Items per page" default(10) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -81,6 +82,7 @@ func (h *handler) list(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param active query bool false "Only active provinces" default(true) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -110,6 +112,7 @@ func (h *handler) listRegions(c *gin.Context) { // @Security BearerAuth // @Param region query string true "Region name (en, ru or tm)" // @Param active query bool false "Only active etraps" default(true) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -144,6 +147,7 @@ func (h *handler) listEtraps(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Branch ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -184,6 +188,7 @@ func (h *handler) getByID(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param body body CreateBranchDTO true "Branch payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 201 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -218,6 +223,7 @@ func (h *handler) create(c *gin.Context) { // @Security BearerAuth // @Param id path int true "Branch ID" // @Param body body UpdateBranchDTO true "Branch payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -261,6 +267,7 @@ func (h *handler) update(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Branch ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError diff --git a/internal/org/province/handler.go b/internal/org/province/handler.go index a569a1b..14754b3 100644 --- a/internal/org/province/handler.go +++ b/internal/org/province/handler.go @@ -51,6 +51,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Param active query bool false "Filter by active status" // @Param page query int false "Page number" default(1) // @Param limit query int false "Items per page" default(10) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -79,6 +80,7 @@ func (h *handler) list(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Province ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -113,6 +115,7 @@ func (h *handler) getByID(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param body body CreateProvinceDTO true "Province payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 201 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -143,6 +146,7 @@ func (h *handler) create(c *gin.Context) { // @Security BearerAuth // @Param id path int true "Province ID" // @Param body body UpdateProvinceDTO true "Province payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -182,6 +186,7 @@ func (h *handler) update(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Province ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError diff --git a/internal/payment/paymenthistory/handler.go b/internal/payment/paymenthistory/handler.go index 66e5a68..e8ac83b 100644 --- a/internal/payment/paymenthistory/handler.go +++ b/internal/payment/paymenthistory/handler.go @@ -52,6 +52,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Param order query string false "Sort direction" Enums(asc, desc) default(desc) // @Param page query int false "Page number" default(1) // @Param limit query int false "Items per page" default(10) +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} ListPaymentHistoryDTO // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -80,6 +81,7 @@ func (h *handler) list(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Payment ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} PaymentHistoryDetailDTO // @Failure 400 {object} appresult.AppError // @Failure 403 {object} appresult.AppError @@ -117,6 +119,7 @@ func (h *handler) get(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Order ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {array} PaymentGatewayDTO // @Failure 400 {object} appresult.AppError // @Failure 403 {object} appresult.AppError @@ -156,6 +159,7 @@ func (h *handler) gateway(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Order ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {array} PaymentHistoryItemDTO // @Failure 400 {object} appresult.AppError // @Failure 403 {object} appresult.AppError @@ -190,6 +194,7 @@ func (h *handler) orderPayments(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Order ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {array} PaymentLogDTO // @Failure 400 {object} appresult.AppError // @Failure 403 {object} appresult.AppError diff --git a/internal/payment/paymentsettings/handler.go b/internal/payment/paymentsettings/handler.go index 9da9762..31e4515 100644 --- a/internal/payment/paymentsettings/handler.go +++ b/internal/payment/paymentsettings/handler.go @@ -36,6 +36,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Tags payment-settings // @Produce json // @Security BearerAuth +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} PaymentSettingsDTO // @Failure 500 {object} appresult.AppError // @Router /payment-settings [get] @@ -58,6 +59,7 @@ func (h *handler) get(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param body body UpdatePaymentSettingsDTO true "Payment settings payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} PaymentSettingsDTO // @Failure 400 {object} appresult.AppError // @Failure 500 {object} appresult.AppError diff --git a/internal/payment/paymenttexts/handler.go b/internal/payment/paymenttexts/handler.go index dcd0aed..a0d65df 100644 --- a/internal/payment/paymenttexts/handler.go +++ b/internal/payment/paymenttexts/handler.go @@ -46,6 +46,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Produce json // @Security BearerAuth // @Param search query string false "Filter by code, name or text" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} ListPaymentTextDTO // @Failure 500 {object} appresult.AppError // @Router /payment-texts [get] @@ -77,6 +78,7 @@ func (h *handler) list(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param code path string true "Text code" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} PaymentTextDTO // @Failure 404 {object} appresult.AppError // @Failure 500 {object} appresult.AppError @@ -119,6 +121,7 @@ func (h *handler) getByCode(c *gin.Context) { // @Security BearerAuth // @Param code path string true "Text code" // @Param body body UpdatePaymentTextDTO true "Payment text payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} PaymentTextDTO // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -156,6 +159,7 @@ func (h *handler) update(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param code path string true "Text code" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} appresult.AppSuccess // @Failure 403 {object} appresult.AppError // @Failure 404 {object} appresult.AppError diff --git a/internal/payment/visamasterpay/handler.go b/internal/payment/visamasterpay/handler.go index 0dfb5ac..de8e19c 100644 --- a/internal/payment/visamasterpay/handler.go +++ b/internal/payment/visamasterpay/handler.go @@ -44,6 +44,7 @@ func (h *handler) Register(router *gin.RouterGroup) { // @Produce json // @Security BearerAuth // @Param id path int true "Visa/master payment order ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} PaymentQuoteDTO // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -77,6 +78,7 @@ func (h *handler) quote(c *gin.Context) { // @Security BearerAuth // @Param id path int true "Visa/master payment order ID" // @Param body body PayOrderDTO true "Payment payload" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} PaymentInitResultDTO // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -117,6 +119,7 @@ func (h *handler) pay(c *gin.Context) { // @Produce json // @Security BearerAuth // @Param id path int true "Visa/master payment order ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} PaymentResultDTO // @Failure 400 {object} appresult.AppError // @Failure 404 {object} appresult.AppError @@ -152,6 +155,7 @@ func (h *handler) status(c *gin.Context) { // @Tags visa-master-payment-orders // @Produce json // @Param paymentId query int true "Payment attempt ID" +// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm) // @Success 200 {object} CallbackResultDTO // @Router /visa-master-payment-orders/callback [get] func (h *handler) callback(c *gin.Context) {