From 168fb44be75fc3674c13467d38698b4117178fbc Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sun, 22 Sep 2024 10:07:08 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- backend/src/users/dto/users.dto.ts | 2 +- backend/src/users/schema/users.schema.ts | 9 ++++++--- backend/src/users/users.controller.ts | 12 +++++++----- backend/src/users/users.module.ts | 6 ++---- 4 files changed, 16 insertions(+), 13 deletions(-) diff --git a/backend/src/users/dto/users.dto.ts b/backend/src/users/dto/users.dto.ts index 5e00ba9..8dc5f49 100644 --- a/backend/src/users/dto/users.dto.ts +++ b/backend/src/users/dto/users.dto.ts @@ -39,4 +39,4 @@ export class GetAPIVersionResponseDto extends createZodDto( export class GetMyUserInfoResponseDto extends createZodDto( getMyUserInfoResponseSchema, -) {} \ No newline at end of file +) {} diff --git a/backend/src/users/schema/users.schema.ts b/backend/src/users/schema/users.schema.ts index a0d0466..a7ccf8c 100644 --- a/backend/src/users/schema/users.schema.ts +++ b/backend/src/users/schema/users.schema.ts @@ -103,9 +103,12 @@ export const getMyUserInfoResponseSchema = z.object({ overDueDay: extendApi(z.coerce.number().describe('현재 연체된 날수'), { example: 0, }), - reservations: extendApi(z.array(VUserReservations).describe('해당 유저의 예약 정보'), { - example: [], - }), + reservations: extendApi( + z.array(VUserReservations).describe('해당 유저의 예약 정보'), + { + example: [], + }, + ), lendings: extendApi(z.array(lending).describe('해당 유저의 대출 정보'), { example: [], }), diff --git a/backend/src/users/users.controller.ts b/backend/src/users/users.controller.ts index d8f581a..294a3c3 100644 --- a/backend/src/users/users.controller.ts +++ b/backend/src/users/users.controller.ts @@ -66,7 +66,7 @@ export class UsersController { }, }) async getUsersDeprecated(@Query() getUsersRequestDto: GetUsersRequestDto) {} - + @Get() @ApiOperation({ summary: 'Search users', @@ -141,8 +141,10 @@ export class UsersController { }, }, }) - async createUsersDeprecated(@Body() createUsersRequestDto: CreateUsersRequestDto) {} - + async createUsersDeprecated( + @Body() createUsersRequestDto: CreateUsersRequestDto, + ) {} + @Post() @ApiOperation({ summary: 'Create users', @@ -188,7 +190,7 @@ export class UsersController { @Param('id') id: string, @Body() updateUsersRequestDto: UpdateUsersRequestDto, ) {} - + @Post(':id') @ApiOperation({ description: '유저 정보를 변경한다.', @@ -292,7 +294,7 @@ export class UsersController { async myUpdateUsersDeprecated( @Body() myUpddateUsersRequestDto: MyUpddateUsersRequestDto, ) {} - + @Patch('/me') @ApiOperation({ description: '내 유저정보를 변경한다.', diff --git a/backend/src/users/users.module.ts b/backend/src/users/users.module.ts index cd8e8ee..440ef36 100644 --- a/backend/src/users/users.module.ts +++ b/backend/src/users/users.module.ts @@ -4,8 +4,6 @@ import { UsersService } from './users.service'; @Module({ controllers: [UsersController], - providers: [UsersService] + providers: [UsersService], }) -export class UsersModule { - -} +export class UsersModule {}