Skip to content

Commit

Permalink
feat :: team api code
Browse files Browse the repository at this point in the history
  • Loading branch information
dutexion committed May 8, 2024
1 parent 5888cd3 commit 43a40ba
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/utils/apis/team.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,21 @@ export const teamCheck = async () => {
export const teamCreate = async (data: TeamCreateType) => {
return await instance.post(`${router}`, data);
};

export const teamDetailCheck = async (uuid: string) => {
return await instance.get(`${router}/detail/${uuid}`);
};

export const teamMemberPut = async (uuid: string, user_ids: string[]) => {
return await instance.put(`${router}/${uuid}/members`, {
members: user_ids,
});
};

export const teamMemberDelete = async (uuid: string, user_id: string) => {
return await instance.delete(`${router}/${uuid}/members`, {
data: {
user_id: user_id,
},
});
};

0 comments on commit 43a40ba

Please sign in to comment.