refactor(mcwl-admin):调整工具列表排序

feature/community-center
yang 2025-05-17 09:45:47 +08:00
parent 43a94d4664
commit 6723b3654a
1 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ public class SysToolController {
public R<String> addTool(@Valid @RequestBody AddToolRes addToolRes) {
SysTool sysTool = BeanUtil.toBean(addToolRes, SysTool.class);
return sysToolService.save(sysTool) ? R.ok("添加成功") : R.fail("添加失败");
return sysToolService.save(sysTool) ? R.ok(null,"添加成功") : R.fail(null,"添加失败");
}
/**
@ -75,7 +75,7 @@ public class SysToolController {
@ApiOperation(value = "编辑工具")
public R<String> editTool(@Valid @RequestBody EditToolRes editToolRes) {
SysTool sysTool = BeanUtil.toBean(editToolRes, SysTool.class);
return sysToolService.updateById(sysTool) ? R.ok("编辑成功") : R.fail("编辑失败");
return sysToolService.updateById(sysTool) ? R.ok(null,"编辑成功") : R.fail(null,"编辑失败");
}
/**
@ -84,7 +84,7 @@ public class SysToolController {
@GetMapping("delTool")
@ApiOperation(value = "删除工具")
public R<String> delTool(@Valid @NotNull(message = "工具id不能为空") Long toolId) {
return sysToolService.removeById(toolId) ? R.ok("删除成功") : R.fail("删除失败");
return sysToolService.removeById(toolId) ? R.ok(null,"删除成功") : R.fail(null,"删除失败");
}