change table column name

This commit is contained in:
2026-07-07 15:16:40 +05:00
parent ef56625321
commit 41471694d5
11 changed files with 318 additions and 334 deletions

View File

@@ -51,8 +51,8 @@ const docTemplate = `{
},
{
"type": "string",
"description": "Filter by unique number",
"name": "unikal_nomer",
"description": "Filter by unique code",
"name": "unique_code",
"in": "query"
},
{
@@ -595,7 +595,7 @@ const docTemplate = `{
"parameters": [
{
"type": "string",
"description": "Filter by title (en, ru, tm)",
"description": "Filter by name",
"name": "document_name",
"in": "query"
},
@@ -1979,45 +1979,56 @@ const docTemplate = `{
"type": "object",
"required": [
"address",
"provinceId",
"title",
"unikalNomer"
"name",
"region"
],
"properties": {
"active": {
"type": "boolean"
},
"address": {
"$ref": "#/definitions/branches.LocalizedText"
},
"billingPassword": {
"type": "string"
},
"billingPasswordSber": {
"billingSberPassword": {
"type": "string"
},
"billingPasswordSwift": {
"billingSberUsername": {
"type": "string"
},
"billingPasswordVisa": {
"billingSwiftPassword": {
"type": "string"
},
"billingSwiftUsername": {
"type": "string"
},
"billingUsername": {
"type": "string"
},
"billingUsernameSber": {
"billingVisaMasterPassword": {
"type": "string"
},
"billingUsernameSwift": {
"billingVisaMasterUsername": {
"type": "string"
},
"billingUsernameVisa": {
"type": "string"
"name": {
"$ref": "#/definitions/branches.LocalizedText"
},
"phoneNumbers": {
"type": "array",
"items": {
"type": "string"
}
},
"provinceId": {
"type": "integer"
},
"title": {
"$ref": "#/definitions/branches.LocalizedText"
"region": {
"type": "string"
},
"unikalNomer": {
"uniqueCode": {
"type": "string"
}
}
@@ -2040,45 +2051,56 @@ const docTemplate = `{
"type": "object",
"required": [
"address",
"provinceId",
"title",
"unikalNomer"
"name",
"region"
],
"properties": {
"active": {
"type": "boolean"
},
"address": {
"$ref": "#/definitions/branches.LocalizedText"
},
"billingPassword": {
"type": "string"
},
"billingPasswordSber": {
"billingSberPassword": {
"type": "string"
},
"billingPasswordSwift": {
"billingSberUsername": {
"type": "string"
},
"billingPasswordVisa": {
"billingSwiftPassword": {
"type": "string"
},
"billingSwiftUsername": {
"type": "string"
},
"billingUsername": {
"type": "string"
},
"billingUsernameSber": {
"billingVisaMasterPassword": {
"type": "string"
},
"billingUsernameSwift": {
"billingVisaMasterUsername": {
"type": "string"
},
"billingUsernameVisa": {
"type": "string"
"name": {
"$ref": "#/definitions/branches.LocalizedText"
},
"phoneNumbers": {
"type": "array",
"items": {
"type": "string"
}
},
"provinceId": {
"type": "integer"
},
"title": {
"$ref": "#/definitions/branches.LocalizedText"
"region": {
"type": "string"
},
"unikalNomer": {
"uniqueCode": {
"type": "string"
}
}
@@ -2086,39 +2108,17 @@ const docTemplate = `{
"loansdocument.CreateLoanDocumentDTO": {
"type": "object",
"required": [
"contentEn",
"contentRu",
"contentTm",
"title"
"name",
"value"
],
"properties": {
"active": {
"type": "boolean"
},
"contentEn": {
"name": {
"type": "string"
},
"contentRu": {
"type": "string"
},
"contentTm": {
"type": "string"
},
"title": {
"$ref": "#/definitions/loansdocument.LocalizedTitle"
}
}
},
"loansdocument.LocalizedTitle": {
"type": "object",
"properties": {
"en": {
"type": "string"
},
"ru": {
"type": "string"
},
"tm": {
"value": {
"type": "string"
}
}
@@ -2134,26 +2134,18 @@ const docTemplate = `{
"loansdocument.UpdateLoanDocumentDTO": {
"type": "object",
"required": [
"contentEn",
"contentRu",
"contentTm",
"title"
"name",
"value"
],
"properties": {
"active": {
"type": "boolean"
},
"contentEn": {
"name": {
"type": "string"
},
"contentRu": {
"value": {
"type": "string"
},
"contentTm": {
"type": "string"
},
"title": {
"$ref": "#/definitions/loansdocument.LocalizedTitle"
}
}
},
@@ -2166,6 +2158,9 @@ const docTemplate = `{
"title"
],
"properties": {
"active": {
"type": "boolean"
},
"content": {
"$ref": "#/definitions/loantype.LocalizedTitle"
},
@@ -2203,6 +2198,9 @@ const docTemplate = `{
"title"
],
"properties": {
"active": {
"type": "boolean"
},
"content": {
"$ref": "#/definitions/loantype.LocalizedTitle"
},
@@ -2220,7 +2218,6 @@ const docTemplate = `{
"paymentcard.CreatePaymentCardDTO": {
"type": "object",
"required": [
"content",
"price",
"title"
],
@@ -2228,11 +2225,11 @@ const docTemplate = `{
"active": {
"type": "boolean"
},
"content": {
"$ref": "#/definitions/paymentcard.LocalizedText"
"notes": {
"type": "string"
},
"price": {
"type": "number"
"type": "string"
},
"title": {
"$ref": "#/definitions/paymentcard.LocalizedText"
@@ -2264,7 +2261,6 @@ const docTemplate = `{
"paymentcard.UpdatePaymentCardDTO": {
"type": "object",
"required": [
"content",
"price",
"title"
],
@@ -2272,11 +2268,11 @@ const docTemplate = `{
"active": {
"type": "boolean"
},
"content": {
"$ref": "#/definitions/paymentcard.LocalizedText"
"notes": {
"type": "string"
},
"price": {
"type": "number"
"type": "string"
},
"title": {
"$ref": "#/definitions/paymentcard.LocalizedText"
@@ -2336,16 +2332,18 @@ const docTemplate = `{
"reasonscard.CreateReasonCardDTO": {
"type": "object",
"required": [
"content",
"price",
"title"
],
"properties": {
"content": {
"$ref": "#/definitions/reasonscard.LocalizedText"
"active": {
"type": "boolean"
},
"notes": {
"type": "string"
},
"price": {
"type": "number"
"type": "string"
},
"title": {
"$ref": "#/definitions/reasonscard.LocalizedText"
@@ -2369,16 +2367,18 @@ const docTemplate = `{
"reasonscard.UpdateReasonCardDTO": {
"type": "object",
"required": [
"content",
"price",
"title"
],
"properties": {
"content": {
"$ref": "#/definitions/reasonscard.LocalizedText"
"active": {
"type": "boolean"
},
"notes": {
"type": "string"
},
"price": {
"type": "number"
"type": "string"
},
"title": {
"$ref": "#/definitions/reasonscard.LocalizedText"