Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"eslint-plugin-prettier": "^5.5.4",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-simple-import-sort": "^12.1.1",
"event-source-polyfill": "^1.0.31",
"lucide-react": "^0.545.0",
"prettier": "^3.6.2",
"react": "^19.0.0",
Expand Down
25 changes: 25 additions & 0 deletions src/apis/myPage.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type {
TDeleteRequest,
TDeleteResponse,
TInterviewSummaryResponse,
TMyFeedbackDetailResponse,
TMyFeedbackRequest,
TMyFeedbackResponse,
Expand All @@ -10,6 +11,9 @@ import type {
TPatchProfileRequest,
TPatchProfileResponse,
TPatchRequest,
TQuestionAnswersResponse,
TQuestionFeedbackResponse,
TRandomQuestionsResponse,
} from '@/types/myPage';

import { axiosInstance } from '@/apis/axiosInstance';
Expand Down Expand Up @@ -46,3 +50,24 @@ export const putProfile = async (param: TPatchProfileRequest): Promise<TPatchPro
const { data } = await axiosInstance.put<TPatchProfileResponse>('/api/myarchive/myprofile', param);
return data;
};

// 나의 면접 상세 API
export const getInterviewSummary = async (interviewId: number): Promise<TInterviewSummaryResponse> => {
const { data } = await axiosInstance.get<TInterviewSummaryResponse>(`/api/myarchive/myinterviews/${interviewId}/summary`);
return data;
};

export const getQuestionAnswers = async (questionId: number): Promise<TQuestionAnswersResponse> => {
const { data } = await axiosInstance.get<TQuestionAnswersResponse>(`/api/myarchive/myinterviews/questions/${questionId}/answers`);
return data;
};

export const getQuestionFeedback = async (questionId: number): Promise<TQuestionFeedbackResponse> => {
const { data } = await axiosInstance.get<TQuestionFeedbackResponse>(`/api/myarchive/myinterviews/questions/${questionId}/feedback`);
return data;
};

export const getRandomQuestions = async (questionId: number): Promise<TRandomQuestionsResponse> => {
const { data } = await axiosInstance.get<TRandomQuestionsResponse>(`/api/myarchive/myinterviews/questions/${questionId}/random-questions`);
return data;
};
Loading