feat: now GetUser returnes all the image info
This commit is contained in:
parent
673ce48fac
commit
3aafab36c2
6 changed files with 63 additions and 33 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"`
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue