-
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.
✨ Feat: Action Items 담당자 지정 api 구현 완료 (#197)
* ✨ Feat: Action Items 담당자 지정 api 타입 작성 및 비동기 함수 작성 * 🐛 Fix: Action Items api 오타 수정 및 절대 경로로 수정 * ✨ Feat: Action Items 팀원 get api 연결 * ✨ Feat: Action Items 담당자 지정 api 연결 * ✨ Feat: Action Items 담당자 지정 api 구현 완료
- Loading branch information
Showing
9 changed files
with
151 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { GetTeamMembersRequest, GetTeamMembersResponse } from '@/api/@types/TeamController'; | ||
import axiosInstance from '@/api/axiosConfig'; | ||
|
||
export const getMember = async ({ | ||
teamId, | ||
retrospectiveId, | ||
}: GetTeamMembersRequest): Promise<GetTeamMembersResponse> => { | ||
try { | ||
const response = await axiosInstance.get<GetTeamMembersResponse>(`/teams/${teamId}/users?${retrospectiveId}=`); | ||
console.log('팀 멤버 조회 성공', response.data); | ||
return response.data; | ||
} catch (error) { | ||
throw new Error('팀 멤버 조회 실패'); | ||
} | ||
}; |
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,13 @@ | ||
import { PutActionItemsRequest, PutActionItemsResponse } from '@/api/@types/TeamController'; | ||
import axiosInstance from '@/api/axiosConfig'; | ||
|
||
export const putActionItemsMember = async (requestData: PutActionItemsRequest): Promise<PutActionItemsResponse> => { | ||
try { | ||
// console.log(requestData); | ||
const response = await axiosInstance.put<PutActionItemsResponse>('/sections/action-items', requestData); | ||
// console.log('action item 멤버 저장 성공', response); | ||
return response.data; | ||
} catch (error) { | ||
throw new Error('action item 멤버 저장 실패'); | ||
} | ||
}; |
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