-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Comment: comment api type 설정 (1차 작업) * 🐛Fix: comment 비동기 함수 객체 생성 및 TeamController type 설정+비동기 함수 객체 생성 * chore: 자잘한 수정 (파일명 수정, 주석처리, toast.error -> console.error 수정) * fix: 자잘한 api 코드 수정( 타입 수정 및 함수 수정) * fix: 컴포넌트 생성 * ✨ Feat: webpack proxy 설정, axiosConfig 추가, api 추가 (#151) # Conflicts: # src/api/@types/@asConst.ts * 🐛fix: revise, sections page api connect * 💄 Design: Main 페이지 디자인 수정 (#154) * 💄Design: 자잘한 css 수정 --------- Co-authored-by: 공정민 <[email protected]> Co-authored-by: Yena Kim <[email protected]>
- Loading branch information
1 parent
79a2c43
commit c5797ed
Showing
25 changed files
with
448 additions
and
21,564 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,15 +1,48 @@ | ||
// 임시 API | ||
|
||
export interface CommentRequest { | ||
export interface GetCommentRequest { | ||
id: string; | ||
} | ||
|
||
export interface CommentResponse { | ||
id: string; | ||
name: string; | ||
text: string; | ||
export interface GetCommentResponse { | ||
code: number; | ||
message: string; | ||
data: { | ||
id: number; | ||
content: string; | ||
}; | ||
} | ||
|
||
//put | ||
export interface PutCommentRequest { | ||
id: number; | ||
} | ||
|
||
//delete | ||
export interface DeleteCommentRequest { | ||
id: number; | ||
} | ||
|
||
export interface DeleteCommentResponse { | ||
code: number; | ||
message: string; | ||
data: object; | ||
} | ||
|
||
//GetAllComment | ||
export interface AllGetCommentResponse { | ||
code: number; | ||
message: string; | ||
data: CommentData[]; | ||
} | ||
|
||
export interface CommentData { | ||
id: number; | ||
comment: string; | ||
} | ||
|
||
//Post | ||
|
||
export interface CommentClient { | ||
getComment(): Promise<CommentResponse>; | ||
getComment(request: GetCommentRequest): Promise<GetCommentResponse>; | ||
delete(request: DeleteCommentRequest): Promise<DeleteCommentResponse>; | ||
getAllComment(): Promise<AllGetCommentResponse>; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export interface GetTeamMembersRequest { | ||
teamId: number; | ||
retrospectiveId: number; | ||
} | ||
|
||
export interface GetTeamMembersResponse { | ||
code: number; | ||
message: string; | ||
data: TeamMembersData[]; | ||
} | ||
|
||
export interface TeamMembersData { | ||
userId: number; | ||
username: string; | ||
profileImage: string; | ||
} | ||
|
||
export interface TeamControllerClient { | ||
get(request: GetTeamMembersRequest): Promise<GetTeamMembersResponse>; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { TeamControllerClient } from '../@types/TeamController'; | ||
import { mswInstance } from '../client'; | ||
|
||
const ROUTE = 'teams'; | ||
|
||
export const TeamControllerServices: TeamControllerClient = { | ||
get: async ({ teamId, ...request }) => { | ||
return await mswInstance.get(`${ROUTE}/${teamId}/users`, { params: request }); | ||
}, | ||
}; |
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.