Skip to content

Commit

Permalink
Merge branch 'be/dev/refactor-ItemHistory#1695' of https://github.com…
Browse files Browse the repository at this point in the history
…/innovationacademy-kr/Cabi into be/dev/refactor-ItemHistory#1695
  • Loading branch information
saewoo1 committed Oct 25, 2024
2 parents 2df4fe5 + af818cb commit 412f2c5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config
19 changes: 19 additions & 0 deletions frontend/src/Cabinet/api/axios/axios.custom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,25 @@ export const axiosItemAssign = async (
}
};

const axiosCoinAssignURL = "v5/admin/items/assign/coin";
export const axiosCoinAssign = async (
itemSku: string,
userIds: number[],
amount: number
): Promise<any> => {
try {
const response = await instance.post(axiosCoinAssignURL, {
itemSku,
userIds,
amount,
});
return response;
} catch (error) {
logAxiosError(error, ErrorType.STORE, "아이템 지급 중 오류 발생", true);
throw error;
}
};

const axiosGetUserItemsURL = "/v5/admin/items/users/";
export const axiosGetUserItems = async (
userId: number,
Expand Down

0 comments on commit 412f2c5

Please sign in to comment.