shared: use one LocalizedText type everywhere
auth, user, userbranch and org/branches each declared their own identical
{en, ru, tm} struct; they now use shared.LocalizedText. No JSON change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
22
docs/docs.go
22
docs/docs.go
@@ -8340,7 +8340,7 @@ const docTemplate = `{
|
||||
"type": "boolean"
|
||||
},
|
||||
"address": {
|
||||
"$ref": "#/definitions/branches.LocalizedText"
|
||||
"$ref": "#/definitions/shared.LocalizedText"
|
||||
},
|
||||
"billingPassword": {
|
||||
"type": "string"
|
||||
@@ -8367,7 +8367,7 @@ const docTemplate = `{
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"$ref": "#/definitions/branches.LocalizedText"
|
||||
"$ref": "#/definitions/shared.LocalizedText"
|
||||
},
|
||||
"phoneNumbers": {
|
||||
"type": "string"
|
||||
@@ -8383,20 +8383,6 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"branches.LocalizedText": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"en": {
|
||||
"type": "string"
|
||||
},
|
||||
"ru": {
|
||||
"type": "string"
|
||||
},
|
||||
"tm": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"branches.UpdateBranchDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -8409,7 +8395,7 @@ const docTemplate = `{
|
||||
"type": "boolean"
|
||||
},
|
||||
"address": {
|
||||
"$ref": "#/definitions/branches.LocalizedText"
|
||||
"$ref": "#/definitions/shared.LocalizedText"
|
||||
},
|
||||
"billingPassword": {
|
||||
"type": "string"
|
||||
@@ -8436,7 +8422,7 @@ const docTemplate = `{
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"$ref": "#/definitions/branches.LocalizedText"
|
||||
"$ref": "#/definitions/shared.LocalizedText"
|
||||
},
|
||||
"phoneNumbers": {
|
||||
"type": "string"
|
||||
|
||||
Reference in New Issue
Block a user