feat: 完成角色删除功能对接

This commit is contained in:
siujamo
2025-12-29 14:20:38 +08:00
parent 1ae17823ef
commit 944d176240
3 changed files with 81 additions and 39 deletions
+4
View File
@@ -33,3 +33,7 @@ export async function addRole(request: RoleFormValues) {
export async function editRole(request: RoleFormValues) {
return await webClient.put("/roles", request)
}
export async function deleteRole(id: number | string) {
return await webClient.delete(`/roles/${id}`)
}