-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
59 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,12 +25,14 @@ export const USER_DUMMY = [ | |
]; | ||
|
||
export const USER_INFO_DUMMY = { | ||
provider: 'LOCAL', | ||
userId: 1, | ||
id: 'test123', | ||
email: '[email protected]', | ||
nickname: 'momoco', | ||
image: '', | ||
profileUrl: '', | ||
bio: "Hi, I'm Momoco!", | ||
link: ['[email protected]'], | ||
links: ['[email protected]'], | ||
}; | ||
|
||
export const TEAM_DUMMY: Team[] = [ | ||
|
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,34 +1,32 @@ | ||
// 회원가입, 로그인 시 필요한 유저 타입 정의 | ||
export type UserSignInForm = { | ||
userId: string; | ||
password: string; | ||
}; | ||
|
||
export type UserSignUpForm = UserSignInForm & { | ||
export type User = { | ||
userId: number; | ||
id: string; | ||
email: string; | ||
image: string; | ||
password: string; | ||
provider: 'LOCAL' | 'KAKAO' | 'GOOGLE'; | ||
nickname: string; | ||
bio: string; | ||
bio: string | null; | ||
links: string[]; | ||
profileUrl: string | null; | ||
}; | ||
|
||
export type UserSignUp = UserSignUpForm & { | ||
verificationCode: string; | ||
export type UserSignUpForm = Omit<User, 'userId' | 'provider'> & { | ||
code: string; | ||
password: string; | ||
checkPassword: string; | ||
}; | ||
|
||
export type SearchIDForm = { | ||
email: string; | ||
code: string; | ||
export type UserSignInForm = Pick<User, 'id'> & { | ||
password: string; | ||
}; | ||
|
||
export type SearchPasswordForm = SearchIDForm & { | ||
userId: string; | ||
export type EmailVerificationForm = Pick<User, 'email'> & { | ||
code: string; | ||
}; | ||
|
||
export type EditPassword = { | ||
currentPassword: string; | ||
export type SearchPasswordForm = Pick<User, 'id'> & EmailVerificationForm; | ||
|
||
export type EditPasswordForm = { | ||
password: string; | ||
newPassword: string; | ||
newPasswordChk: string; | ||
checkNewPassword: string; | ||
}; |