260623_02_ENH: 엑셀 다운로드를 포함한 1차 개발 완료

This commit is contained in:
2026-06-23 11:38:46 +09:00
parent 08ea4d5420
commit d3592ad81b
9 changed files with 141 additions and 9 deletions

View File

@@ -38,6 +38,17 @@ export function useUpdateUserMutation() {
});
}
export function useExportUserMutation() {
return useMutation({
mutationFn: ({userRole, userIds}: {userRole: number; userIds: string[]}) =>
nextApi.post<ArrayBuffer>(
`/user/excel-download/${userRole}`,
userIds,
{ expectBinary: true }
),
});
}
export function useDeleteUserMutation() {
const qc = useQueryClient();