Skip to content

Commit

Permalink
Commnet: #196 MockAPI 함수 기능 설명 주석 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Seok93 committed Oct 16, 2024
1 parent b38ef33 commit ca36270
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mocks/mockAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ export function findProjectUser(projectId: Project['projectId'], userId: User['u
}

/* ================= 프로젝트(Project ) 관련 처리 ================= */

// 프로젝트 조회
export function findProject(projectId: Project['projectId']) {
return PROJECT_DUMMY.find((project) => project.projectId === projectId);
}
Expand Down Expand Up @@ -101,6 +103,7 @@ export function findAllAssignee(taskId: Task['taskId']) {
return TASK_USER_DUMMY.filter((taskUser) => taskUser.taskId === taskId);
}

// 일정 수행자 삭제
export function deleteAssignee(taskId: Task['taskId'], userId: User['userId']) {
const index = TASK_USER_DUMMY.findIndex(
(taskUser) => taskUser.taskId === Number(taskId) && taskUser.userId === Number(userId),
Expand Down

0 comments on commit ca36270

Please sign in to comment.