|
@@ -56,7 +56,6 @@ public class SysRoleController extends BaseController
|
|
|
@Autowired
|
|
|
private ISysDeptService deptService;
|
|
|
|
|
|
- @PreAuthorize("@ss.hasPermi('system:role:list')")
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(SysRole role)
|
|
|
{
|
|
@@ -66,7 +65,6 @@ public class SysRoleController extends BaseController
|
|
|
}
|
|
|
|
|
|
@Log(title = "角色管理", businessType = BusinessType.EXPORT)
|
|
|
- @PreAuthorize("@ss.hasPermi('system:role:export')")
|
|
|
@PostMapping("/export")
|
|
|
public void export(HttpServletResponse response, SysRole role)
|
|
|
{
|
|
@@ -89,7 +87,6 @@ public class SysRoleController extends BaseController
|
|
|
/**
|
|
|
* 新增角色
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:role:add')")
|
|
|
@Log(title = "角色管理", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
|
public AjaxResult add(@Validated @RequestBody SysRole role)
|
|
@@ -110,7 +107,6 @@ public class SysRoleController extends BaseController
|
|
|
/**
|
|
|
* 修改保存角色
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:role:edit')")
|
|
|
@Log(title = "角色管理", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/put")
|
|
|
public AjaxResult edit(@Validated @RequestBody SysRole role)
|
|
@@ -145,7 +141,6 @@ public class SysRoleController extends BaseController
|
|
|
/**
|
|
|
* 修改保存数据权限
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:role:edit')")
|
|
|
@Log(title = "角色管理", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/dataScope")
|
|
|
public AjaxResult dataScope(@RequestBody SysRole role)
|
|
@@ -158,9 +153,8 @@ public class SysRoleController extends BaseController
|
|
|
/**
|
|
|
* 状态修改
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:role:edit')")
|
|
|
@Log(title = "角色管理", businessType = BusinessType.UPDATE)
|
|
|
- @PutMapping("/changeStatus")
|
|
|
+ @PostMapping("/changeStatus")
|
|
|
public AjaxResult changeStatus(@RequestBody SysRole role)
|
|
|
{
|
|
|
roleService.checkRoleAllowed(role);
|
|
@@ -172,9 +166,8 @@ public class SysRoleController extends BaseController
|
|
|
/**
|
|
|
* 删除角色
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:role:remove')")
|
|
|
@Log(title = "角色管理", businessType = BusinessType.DELETE)
|
|
|
- @DeleteMapping("/{roleIds}")
|
|
|
+ @GetMapping("/delete/{roleIds}")
|
|
|
public AjaxResult remove(@PathVariable Long[] roleIds)
|
|
|
{
|
|
|
return toAjax(roleService.deleteRoleByIds(roleIds));
|