forked from boostcampwm-2024/web15-OctoDocs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from boostcampwm-2024/refactor-be-#42
로그인 여부 체크 api 구현
- Loading branch information
Showing
3 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { IsString, IsBoolean } from 'class-validator'; | ||
|
||
export class LoginResponseDto { | ||
@ApiProperty({ | ||
example: 'OO 생성에 성공했습니다.', | ||
description: 'api 요청 결과 메시지', | ||
}) | ||
@IsString() | ||
message: string; | ||
|
||
@ApiProperty({ | ||
example: true, | ||
description: '로그인 여부', | ||
}) | ||
@IsBoolean() | ||
loggedIn: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters