fix: change avatar upload response to JSON object with URL;

feat: add UrlDto for standardized URL responses;
refactor: update avatar upload endpoint to return UrlDto;
docs: regenerate Swagger;
chore: add comments for untested profile controller methods
This commit is contained in:
2025-07-19 23:23:56 +03:00
parent f65439fb50
commit df54829a67
5 changed files with 66 additions and 9 deletions

View File

@@ -343,7 +343,7 @@ const docTemplate = `{
"multipart/form-data"
],
"produces": [
"text/plain"
"application/json"
],
"tags": [
"Profile"
@@ -362,7 +362,7 @@ const docTemplate = `{
"200": {
"description": "Uploaded image url",
"schema": {
"type": "string"
"$ref": "#/definitions/dto.UrlDto"
}
}
}
@@ -550,6 +550,17 @@ const docTemplate = `{
}
}
},
"dto.UrlDto": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string"
}
}
},
"models.ChangePasswordRequest": {
"type": "object",
"required": [