feat: implemented own profile getter;

experiment: using custom automapper function to map profile to profileDto;
refactor: adjusted ProfileService to use pointer return types with models
This commit is contained in:
2025-07-20 21:39:21 +03:00
parent df54829a67
commit 705b420b9e
3 changed files with 28 additions and 13 deletions

View File

@@ -234,5 +234,5 @@ func (ctrl *ProfileController) uploadAvatar(c *gin.Context) {
return
}
c.JSON(http.StatusOK, dto.UrlDto{Url: link})
c.JSON(http.StatusOK, dto.UrlDto{Url: *link})
}