-
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.
- fetch 요청을 통해 구글 서버에 access_token 보내기 - 새로운 사용자는 is_member false 반환 - 사용자는 base64 닉네임으로 미리 생성 후 유저정보 변경하도록 유도
- Loading branch information
1 parent
b20252e
commit bcaed23
Showing
13 changed files
with
153 additions
and
53 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
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
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
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
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 |
---|---|---|
@@ -1,8 +1,30 @@ | ||
import { PickType } from '@nestjs/mapped-types'; | ||
import { UsersModel } from '../entity/users.entity'; | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class CreateUserDto extends PickType(UsersModel, [ | ||
'nickname', | ||
'email', | ||
'image_url', | ||
]) {} | ||
]) { | ||
@ApiProperty({ | ||
type: 'string', | ||
example: '어린콩', | ||
description: '닉네임', | ||
}) | ||
nickname: string; | ||
|
||
@ApiProperty({ | ||
type: 'string', | ||
example: 'https://sldkjfds/dsflkdsjf.png', | ||
description: '이미지 링크', | ||
}) | ||
image_url: string; | ||
|
||
@ApiProperty({ | ||
type: 'string', | ||
example: '[email protected]', | ||
description: '이메일', | ||
}) | ||
email: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { PartialType } from '@nestjs/mapped-types'; | ||
import { UsersModel } from '../entity/users.entity'; | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { IsOptional } from 'class-validator'; | ||
|
||
export class UpdateUserDto extends PartialType(UsersModel) { | ||
@ApiProperty({ | ||
type: 'string', | ||
example: '어린콩', | ||
description: '닉네임', | ||
}) | ||
@IsOptional() | ||
nickname?: string; | ||
|
||
@ApiProperty({ | ||
type: 'string', | ||
example: 'https://sldkjfds/dsflkdsjf.png', | ||
description: '이미지 링크', | ||
}) | ||
@IsOptional() | ||
image_url?: 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
Oops, something went wrong.