diff --git a/jeecg-boot/src/main/java/org/jeecg/modules/system/controller/SysDepartController.java b/jeecg-boot/src/main/java/org/jeecg/modules/system/controller/SysDepartController.java index 2cb0a36f..4a5689fa 100644 --- a/jeecg-boot/src/main/java/org/jeecg/modules/system/controller/SysDepartController.java +++ b/jeecg-boot/src/main/java/org/jeecg/modules/system/controller/SysDepartController.java @@ -57,7 +57,6 @@ public class SysDepartController { * @return */ @RequestMapping(value = "/add", method = RequestMethod.POST) - public Result add(@RequestBody SysDepart sysDepart, HttpServletRequest request) { Result result = new Result(); String username = JwtUtil.getUserNameByToken(request); @@ -80,7 +79,6 @@ public class SysDepartController { * @return */ @RequestMapping(value = "/edit", method = RequestMethod.PUT) - public Result edit(@RequestBody SysDepart sysDepart, HttpServletRequest request) { String username = JwtUtil.getUserNameByToken(request); @@ -105,7 +103,6 @@ public class SysDepartController { * @return */ @RequestMapping(value = "/delete", method = RequestMethod.DELETE) - public Result delete(@RequestParam(name="id",required=true) String id) { Result result = new Result(); @@ -129,7 +126,6 @@ public class SysDepartController { * @return */ @RequestMapping(value = "/deleteBatch", method = RequestMethod.DELETE) - public Result deleteBatch(@RequestParam(name = "ids", required = true) String ids) { Result result = new Result(); diff --git a/jeecg-boot/src/main/java/org/jeecg/modules/system/controller/SysPermissionController.java b/jeecg-boot/src/main/java/org/jeecg/modules/system/controller/SysPermissionController.java index 3c8372c7..044e6ae4 100644 --- a/jeecg-boot/src/main/java/org/jeecg/modules/system/controller/SysPermissionController.java +++ b/jeecg-boot/src/main/java/org/jeecg/modules/system/controller/SysPermissionController.java @@ -109,7 +109,6 @@ public class SysPermissionController { @RequestMapping(value = "/add", method = RequestMethod.POST) - public Result add(@RequestBody SysPermission permission) { Result result = new Result(); try { @@ -125,7 +124,6 @@ public class SysPermissionController { } @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) - public Result edit(@RequestBody SysPermission permission) { Result result = new Result<>(); try { @@ -141,7 +139,6 @@ public class SysPermissionController { } @RequestMapping(value = "/delete", method = RequestMethod.DELETE) - public Result delete(@RequestParam(name="id",required=true) String id) { Result result = new Result<>(); try { @@ -157,7 +154,6 @@ public class SysPermissionController { @RequestMapping(value = "/deleteBatch", method = RequestMethod.DELETE) - public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { Result result = new Result<>(); try { @@ -251,7 +247,6 @@ public class SysPermissionController { * @return */ @RequestMapping(value = "/saveRolePermission", method = RequestMethod.POST) - public Result saveRolePermission(@RequestBody JSONObject json) { Result result = new Result<>(); try { diff --git a/jeecg-boot/src/main/java/org/jeecg/modules/system/controller/SysRoleController.java b/jeecg-boot/src/main/java/org/jeecg/modules/system/controller/SysRoleController.java index 0c5be6ff..d02b9bef 100644 --- a/jeecg-boot/src/main/java/org/jeecg/modules/system/controller/SysRoleController.java +++ b/jeecg-boot/src/main/java/org/jeecg/modules/system/controller/SysRoleController.java @@ -126,7 +126,6 @@ public class SysRoleController { * @return */ @RequestMapping(value = "/edit", method = RequestMethod.PUT) - public Result edit(@RequestBody SysRole role) { Result result = new Result(); SysRole sysrole = sysRoleService.getById(role.getId()); @@ -150,7 +149,6 @@ public class SysRoleController { * @return */ @RequestMapping(value = "/delete", method = RequestMethod.DELETE) - public Result delete(@RequestParam(name="id",required=true) String id) { Result result = new Result(); SysRole sysrole = sysRoleService.getById(id); @@ -172,7 +170,6 @@ public class SysRoleController { * @return */ @RequestMapping(value = "/deleteBatch", method = RequestMethod.DELETE) - public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { Result result = new Result(); if(ids==null || "".equals(ids.trim())) { diff --git a/jeecg-boot/src/main/java/org/jeecg/modules/system/controller/SysUserController.java b/jeecg-boot/src/main/java/org/jeecg/modules/system/controller/SysUserController.java index 541094cd..e0aee18b 100644 --- a/jeecg-boot/src/main/java/org/jeecg/modules/system/controller/SysUserController.java +++ b/jeecg-boot/src/main/java/org/jeecg/modules/system/controller/SysUserController.java @@ -91,7 +91,6 @@ public class SysUserController { } @RequestMapping(value = "/add", method = RequestMethod.POST) - public Result add(@RequestBody JSONObject jsonObject) { Result result = new Result(); String selectedRoles = jsonObject.getString("selectedroles"); @@ -115,7 +114,6 @@ public class SysUserController { } @RequestMapping(value = "/edit", method = RequestMethod.PUT) - public Result edit(@RequestBody JSONObject jsonObject) { Result result = new Result(); try { @@ -140,7 +138,6 @@ public class SysUserController { } @RequestMapping(value = "/delete", method = RequestMethod.DELETE) - public Result delete(@RequestParam(name="id",required=true) String id) { Result result = new Result(); // 定义SysUserDepart实体类的数据库查询LambdaQueryWrapper @@ -162,7 +159,6 @@ public class SysUserController { } @RequestMapping(value = "/deleteBatch", method = RequestMethod.DELETE) - public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { // 定义SysUserDepart实体类的数据库查询对象LambdaQueryWrapper LambdaQueryWrapper query = new LambdaQueryWrapper(); @@ -292,7 +288,6 @@ public class SysUserController { * 修改密码 */ @RequestMapping(value = "/changPassword", method = RequestMethod.PUT) - public Result changPassword(@RequestBody SysUser sysUser) { Result result = new Result(); String password = sysUser.getPassword();