Skip to content

Commit

Permalink
Merge pull request #40 from BookJamm/update/finding-password-swagger
Browse files Browse the repository at this point in the history
feat: 비밀번호 찾기 Swagger 업데이트
  • Loading branch information
eomgerm authored Jan 5, 2024
2 parents 6633095 + 44b0870 commit f6296ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/user/dto/finding-password-request.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ export class FindingPasswordRequest {
@IsEmail({}, { message: '이메일 형식이 아닙니다' })
@IsNotEmpty({ message: '이메일은 필수입니다.' })
@IsEmailExist({ message: '존재하지 않는 유저입니다.' })
@ApiProperty({ description: '이메일', example: '[email protected]' })
readonly email: string;
}
6 changes: 6 additions & 0 deletions src/user/user.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
ApiConsumes,
ApiCreatedResponse,
ApiExtraModels,
ApiOkResponse,
ApiOperation,
ApiTags,
getSchemaPath,
Expand Down Expand Up @@ -60,6 +61,11 @@ export class UserController {
}

@Post('finding-password')
@ApiOperation({
summary: '이메일로 비밀번호 찾기',
description: '이메일로 비밀번호 임시 비밀번호를 보냅니다.',
})
@ApiOkResponse({ type: FindingPasswordResponse, description: '임시 비밀번호 전송 완료' })
async findPassword(
@Body() request: FindingPasswordRequest,
): Promise<BaseResponse<FindingPasswordResponse>> {
Expand Down

0 comments on commit f6296ec

Please sign in to comment.