backend
Preparing search index...
user/user.controller
UserController
Class UserController
Index
Constructors
constructor
Methods
find
One
update
update
First
Time
Constructors
constructor
new
UserController
(
userService
:
UserService
)
:
UserController
Parameters
userService
:
UserService
Returns
UserController
Methods
find
One
findOne
(
session
:
any
,
)
:
Promise
<
{
comments
:
{
bookId
:
string
;
createdAt
:
Date
;
id
:
string
;
text
:
string
;
userId
:
string
;
}
[]
;
favoriteAuthors
:
(
{
author
:
{
approveStatus
:
boolean
;
biggerProfilePic
:
string
|
null
;
biggerProfilePicKey
:
string
|
null
;
bio
:
string
|
null
;
birthDate
:
Date
|
null
;
createdAt
:
Date
;
id
:
string
;
name
:
string
;
nationality
:
string
|
null
;
openLibraryId
:
string
|
null
;
smallerProfilePic
:
string
|
null
;
smallerProfilePicKey
:
string
|
null
;
subjects
:
string
|
null
;
topWorks
:
string
|
null
;
updatedAt
:
Date
;
}
;
}
&
{
authorId
:
string
;
userId
:
string
}
)
[]
;
favoriteBooks
:
(
{
book
:
{
statistics
:
|
{
averageRating
:
number
;
bookId
:
string
;
id
:
string
;
ratingCount
:
number
;
readersCount
:
number
;
reviewCount
:
number
;
wantToReadCount
:
number
;
}
|
null
;
}
&
{
approveStatus
:
boolean
;
authorId
:
string
|
null
;
biggerCoverPic
:
string
;
biggerCoverPicKey
:
string
|
null
;
createdAt
:
Date
;
description
:
string
;
googleBookId
:
string
|
null
;
id
:
string
;
latestPublicationYear
:
number
|
null
;
openLibraryId
:
string
|
null
;
originalPublicationYear
:
number
|
null
;
originalPublisher
:
string
|
null
;
pageNumber
:
number
|
null
;
smallerCoverPic
:
string
;
smallerCoverPicKey
:
string
|
null
;
title
:
string
;
updatedAt
:
Date
;
}
;
}
&
{
bookId
:
string
;
userId
:
string
}
)
[]
;
haveReadIt
:
(
{
book
:
{
statistics
:
|
{
averageRating
:
number
;
bookId
:
string
;
id
:
string
;
ratingCount
:
number
;
readersCount
:
number
;
reviewCount
:
number
;
wantToReadCount
:
number
;
}
|
null
;
}
&
{
approveStatus
:
boolean
;
authorId
:
string
|
null
;
biggerCoverPic
:
string
;
biggerCoverPicKey
:
string
|
null
;
createdAt
:
Date
;
description
:
string
;
googleBookId
:
string
|
null
;
id
:
string
;
latestPublicationYear
:
number
|
null
;
openLibraryId
:
string
|
null
;
originalPublicationYear
:
number
|
null
;
originalPublisher
:
string
|
null
;
pageNumber
:
number
|
null
;
smallerCoverPic
:
string
;
smallerCoverPicKey
:
string
|
null
;
title
:
string
;
updatedAt
:
Date
;
}
;
}
&
{
addedAt
:
Date
;
bookId
:
string
;
id
:
string
;
userId
:
string
}
)
[]
;
ratings
:
{
bookId
:
string
;
createdAt
:
Date
;
score
:
number
;
userId
:
string
;
}
[]
;
}
&
{
biggerProfilePic
:
string
|
null
;
createdAt
:
Date
;
email
:
string
;
nickname
:
string
|
null
;
smallerProfilePic
:
string
|
null
;
updatedAt
:
Date
;
}
,
>
Parameters
session
:
any
Returns
Promise
<
{
comments
:
{
bookId
:
string
;
createdAt
:
Date
;
id
:
string
;
text
:
string
;
userId
:
string
;
}
[]
;
favoriteAuthors
:
(
{
author
:
{
approveStatus
:
boolean
;
biggerProfilePic
:
string
|
null
;
biggerProfilePicKey
:
string
|
null
;
bio
:
string
|
null
;
birthDate
:
Date
|
null
;
createdAt
:
Date
;
id
:
string
;
name
:
string
;
nationality
:
string
|
null
;
openLibraryId
:
string
|
null
;
smallerProfilePic
:
string
|
null
;
smallerProfilePicKey
:
string
|
null
;
subjects
:
string
|
null
;
topWorks
:
string
|
null
;
updatedAt
:
Date
;
}
;
}
&
{
authorId
:
string
;
userId
:
string
}
)
[]
;
favoriteBooks
:
(
{
book
:
{
statistics
:
|
{
averageRating
:
number
;
bookId
:
string
;
id
:
string
;
ratingCount
:
number
;
readersCount
:
number
;
reviewCount
:
number
;
wantToReadCount
:
number
;
}
|
null
;
}
&
{
approveStatus
:
boolean
;
authorId
:
string
|
null
;
biggerCoverPic
:
string
;
biggerCoverPicKey
:
string
|
null
;
createdAt
:
Date
;
description
:
string
;
googleBookId
:
string
|
null
;
id
:
string
;
latestPublicationYear
:
number
|
null
;
openLibraryId
:
string
|
null
;
originalPublicationYear
:
number
|
null
;
originalPublisher
:
string
|
null
;
pageNumber
:
number
|
null
;
smallerCoverPic
:
string
;
smallerCoverPicKey
:
string
|
null
;
title
:
string
;
updatedAt
:
Date
;
}
;
}
&
{
bookId
:
string
;
userId
:
string
}
)
[]
;
haveReadIt
:
(
{
book
:
{
statistics
:
|
{
averageRating
:
number
;
bookId
:
string
;
id
:
string
;
ratingCount
:
number
;
readersCount
:
number
;
reviewCount
:
number
;
wantToReadCount
:
number
;
}
|
null
;
}
&
{
approveStatus
:
boolean
;
authorId
:
string
|
null
;
biggerCoverPic
:
string
;
biggerCoverPicKey
:
string
|
null
;
createdAt
:
Date
;
description
:
string
;
googleBookId
:
string
|
null
;
id
:
string
;
latestPublicationYear
:
number
|
null
;
openLibraryId
:
string
|
null
;
originalPublicationYear
:
number
|
null
;
originalPublisher
:
string
|
null
;
pageNumber
:
number
|
null
;
smallerCoverPic
:
string
;
smallerCoverPicKey
:
string
|
null
;
title
:
string
;
updatedAt
:
Date
;
}
;
}
&
{
addedAt
:
Date
;
bookId
:
string
;
id
:
string
;
userId
:
string
}
)
[]
;
ratings
:
{
bookId
:
string
;
createdAt
:
Date
;
score
:
number
;
userId
:
string
;
}
[]
;
}
&
{
biggerProfilePic
:
string
|
null
;
createdAt
:
Date
;
email
:
string
;
nickname
:
string
|
null
;
smallerProfilePic
:
string
|
null
;
updatedAt
:
Date
;
}
,
>
update
update
(
session
:
any
,
file
:
UploadedFile
|
null
,
updateUserDto
:
UpdateUserDto
,
)
:
Promise
<
{
biggerProfilePic
:
string
|
null
;
createdAt
:
Date
;
email
:
string
;
nickname
:
string
|
null
;
smallerProfilePic
:
string
|
null
;
updatedAt
:
Date
;
}
,
>
Parameters
session
:
any
file
:
UploadedFile
|
null
updateUserDto
:
UpdateUserDto
Returns
Promise
<
{
biggerProfilePic
:
string
|
null
;
createdAt
:
Date
;
email
:
string
;
nickname
:
string
|
null
;
smallerProfilePic
:
string
|
null
;
updatedAt
:
Date
;
}
,
>
update
First
Time
updateFirstTime
(
session
:
any
,
file
:
UploadedFile
|
null
,
updateUserDto
:
UpdateUserDto
,
)
:
Promise
<
{
biggerProfilePic
:
string
|
null
;
createdAt
:
Date
;
email
:
string
;
nickname
:
string
|
null
;
smallerProfilePic
:
string
|
null
;
updatedAt
:
Date
;
}
,
>
Parameters
session
:
any
file
:
UploadedFile
|
null
updateUserDto
:
UpdateUserDto
Returns
Promise
<
{
biggerProfilePic
:
string
|
null
;
createdAt
:
Date
;
email
:
string
;
nickname
:
string
|
null
;
smallerProfilePic
:
string
|
null
;
updatedAt
:
Date
;
}
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
find
One
update
update
First
Time
backend
Loading...