-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 로그인 시 사용자 id, 리뷰 조회 시 작성자 id 등 api 명세 수정 (#358)
* feat/#357: 로그인 응답에 사용자 이메일, 펫 정보 추가 * chore/#357: image 관련 타입 common디렉토리로 이동 * feat/#357: Review에 작성자id 추가 * refactor/#357: 불필요한 코드 삭제 * feat/#357: id로 본인 리뷰 확인하도록 수정 * feat/#357: 로그인 시 반려동물 프로필에 바로 반영되도록 수정 - 피드백 반영 로그아웃 하고 다시 로그인 했을 때 반려견 정보를 선택하는 점이 불편해요. * chore/#357: 로컬에서만 MSW가 실행되도록 설정
- Loading branch information
1 parent
bc23619
commit 8930b88
Showing
13 changed files
with
41 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,23 @@ import { LoginZipgoAuthRes } from '@/types/auth/remote'; | |
const loginZipgoAuth = (): LoginZipgoAuthRes => ({ | ||
accessToken: 'accessToken', | ||
authResponse: { | ||
id: 1, | ||
email: '[email protected]', | ||
name: 'Zipgo', | ||
profileImgUrl: 'url', | ||
hasPet: false, | ||
hasPet: true, | ||
pets: [ | ||
{ | ||
id: 71, | ||
name: '두식이', | ||
age: 3, | ||
breed: '믹스견', | ||
gender: '남', | ||
petSize: '대형견', | ||
imageUrl: 'https://image.zipgo.pet/prod/pet-image/ddf683ff-5e12-454d-b926-ebefa43c6767', | ||
weight: 11.1, | ||
}, | ||
], | ||
}, | ||
}); | ||
|
||
|
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,11 +1,16 @@ | ||
import { PetProfile } from '../petProfile/client'; | ||
|
||
interface Tokens { | ||
accessToken: string; | ||
} | ||
|
||
interface User { | ||
profileImgUrl: string; | ||
id: number; | ||
name: string; | ||
email: string; | ||
profileImgUrl: string; | ||
hasPet: boolean; | ||
pets: PetProfile[]; | ||
} | ||
|
||
export type { Tokens, User }; |
File renamed without changes.
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