This commit is contained in:
Chuck1sn
2025-05-14 10:16:48 +08:00
commit 3cd59337e7
220 changed files with 23768 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import client from "../../api/client";
export const useRoleUpsert = () => {
const upsertRole = async (role: {
id?: number;
name: string;
code: string;
}) => {
await client.POST("/iam/role", {
body: role,
});
};
return {
upsertRole,
};
};