feat: now GetUser returnes all the image info
All checks were successful
Build and Deploy Go App / build (push) Successful in 5m36s
Build and Deploy Go App / deploy (push) Successful in 27s

This commit is contained in:
Iron_Felix 2025-11-25 04:15:46 +03:00
parent 673ce48fac
commit 3aafab36c2
6 changed files with 63 additions and 33 deletions

View file

@ -552,11 +552,8 @@ components:
format: int64
description: Unique user ID (primary key)
example: 1
avatar_id:
type: integer
format: int64
description: ID of the user avatar (references images table)
example: null
image:
$ref: '#/components/schemas/Image'
mail:
type: string
format: email

View file

@ -124,9 +124,6 @@ type TitleStatus string
// User defines model for User.
type User struct {
// AvatarId ID of the user avatar (references images table)
AvatarId *int64 `json:"avatar_id,omitempty"`
// CreationDate Timestamp when the user was created
CreationDate *time.Time `json:"creation_date,omitempty"`
@ -134,7 +131,8 @@ type User struct {
DispName *string `json:"disp_name,omitempty"`
// Id Unique user ID (primary key)
Id *int64 `json:"id,omitempty"`
Id *int64 `json:"id,omitempty"`
Image *Image `json:"image,omitempty"`
// Mail User email
Mail *openapi_types.Email `json:"mail,omitempty"`

View file

@ -5,11 +5,8 @@ properties:
format: int64
description: Unique user ID (primary key)
example: 1
avatar_id:
type: integer
format: int64
description: ID of the user avatar (references images table)
example: null
image:
$ref: '../schemas/Image.yaml'
mail:
type: string
format: email