🚀 删除角色

This commit is contained in:
bunny 2024-04-22 18:52:05 +08:00
parent 1f1b6da58a
commit b38c7e7a80
1 changed files with 9 additions and 0 deletions

View File

@ -46,4 +46,13 @@ public class SysRoleController {
sysRoleService.updateById(sysRole);
return Result.success();
}
@ApiOperation(value = "删除角色")
@DeleteMapping("remove/{id}")
public Result<SysRole> remove(@PathVariable Long id) {
sysRoleService.removeById(id);
return Result.success();
}
}