mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-03-25 04:43:44 +08:00
20 lines
312 B
TypeScript
20 lines
312 B
TypeScript
import client from "@/api/client";
|
|
|
|
const usePermissionDelete = () => {
|
|
const deletePermission = async (id: number) => {
|
|
await client.DELETE("/iam/permission", {
|
|
params: {
|
|
query: {
|
|
permissionId: id,
|
|
},
|
|
},
|
|
});
|
|
};
|
|
|
|
return {
|
|
deletePermission,
|
|
};
|
|
};
|
|
|
|
export default usePermissionDelete;
|