|
|
|
@ -64,7 +64,7 @@ public class SysRoleController extends BaseController
|
|
|
|
|
return getDataTable(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Log(title = "角色管理", businessType = BusinessType.EXPORT)
|
|
|
|
|
// @Log(title = "角色管理", businessType = BusinessType.EXPORT)
|
|
|
|
|
// @PreAuthorize("@ss.hasPermi('system:role:export')")
|
|
|
|
|
@PostMapping("/export")
|
|
|
|
|
public void export(HttpServletResponse response, SysRole role)
|
|
|
|
@ -89,7 +89,7 @@ public class SysRoleController extends BaseController
|
|
|
|
|
* 新增角色
|
|
|
|
|
*/
|
|
|
|
|
// @PreAuthorize("@ss.hasPermi('system:role:add')")
|
|
|
|
|
@Log(title = "角色管理", businessType = BusinessType.INSERT)
|
|
|
|
|
// @Log(title = "角色管理", businessType = BusinessType.INSERT)
|
|
|
|
|
@PostMapping
|
|
|
|
|
public AjaxResult add(@Validated @RequestBody SysRole role)
|
|
|
|
|
{
|
|
|
|
@ -110,7 +110,7 @@ public class SysRoleController extends BaseController
|
|
|
|
|
* 修改保存角色
|
|
|
|
|
*/
|
|
|
|
|
// @PreAuthorize("@ss.hasPermi('system:role:edit')")
|
|
|
|
|
@Log(title = "角色管理", businessType = BusinessType.UPDATE)
|
|
|
|
|
// @Log(title = "角色管理", businessType = BusinessType.UPDATE)
|
|
|
|
|
@PutMapping
|
|
|
|
|
public AjaxResult edit(@Validated @RequestBody SysRole role)
|
|
|
|
|
{
|
|
|
|
@ -145,7 +145,7 @@ public class SysRoleController extends BaseController
|
|
|
|
|
* 修改保存数据权限
|
|
|
|
|
*/
|
|
|
|
|
// @PreAuthorize("@ss.hasPermi('system:role:edit')")
|
|
|
|
|
@Log(title = "角色管理", businessType = BusinessType.UPDATE)
|
|
|
|
|
// @Log(title = "角色管理", businessType = BusinessType.UPDATE)
|
|
|
|
|
@PutMapping("/dataScope")
|
|
|
|
|
public AjaxResult dataScope(@RequestBody SysRole role)
|
|
|
|
|
{
|
|
|
|
@ -158,7 +158,7 @@ public class SysRoleController extends BaseController
|
|
|
|
|
* 状态修改
|
|
|
|
|
*/
|
|
|
|
|
// @PreAuthorize("@ss.hasPermi('system:role:edit')")
|
|
|
|
|
@Log(title = "角色管理", businessType = BusinessType.UPDATE)
|
|
|
|
|
// @Log(title = "角色管理", businessType = BusinessType.UPDATE)
|
|
|
|
|
@PutMapping("/changeStatus")
|
|
|
|
|
public AjaxResult changeStatus(@RequestBody SysRole role)
|
|
|
|
|
{
|
|
|
|
@ -172,7 +172,7 @@ public class SysRoleController extends BaseController
|
|
|
|
|
* 删除角色
|
|
|
|
|
*/
|
|
|
|
|
// @PreAuthorize("@ss.hasPermi('system:role:remove')")
|
|
|
|
|
@Log(title = "角色管理", businessType = BusinessType.DELETE)
|
|
|
|
|
// @Log(title = "角色管理", businessType = BusinessType.DELETE)
|
|
|
|
|
@DeleteMapping("/{roleIds}")
|
|
|
|
|
public AjaxResult remove(@PathVariable Long[] roleIds)
|
|
|
|
|
{
|
|
|
|
@ -217,7 +217,7 @@ public class SysRoleController extends BaseController
|
|
|
|
|
* 取消授权用户
|
|
|
|
|
*/
|
|
|
|
|
// @PreAuthorize("@ss.hasPermi('system:role:edit')")
|
|
|
|
|
@Log(title = "角色管理", businessType = BusinessType.GRANT)
|
|
|
|
|
// @Log(title = "角色管理", businessType = BusinessType.GRANT)
|
|
|
|
|
@PutMapping("/authUser/cancel")
|
|
|
|
|
public AjaxResult cancelAuthUser(@RequestBody SysUserRole userRole)
|
|
|
|
|
{
|
|
|
|
@ -228,7 +228,7 @@ public class SysRoleController extends BaseController
|
|
|
|
|
* 批量取消授权用户
|
|
|
|
|
*/
|
|
|
|
|
// @PreAuthorize("@ss.hasPermi('system:role:edit')")
|
|
|
|
|
@Log(title = "角色管理", businessType = BusinessType.GRANT)
|
|
|
|
|
// @Log(title = "角色管理", businessType = BusinessType.GRANT)
|
|
|
|
|
@PutMapping("/authUser/cancelAll")
|
|
|
|
|
public AjaxResult cancelAuthUserAll(Long roleId, Long[] userIds)
|
|
|
|
|
{
|
|
|
|
@ -239,7 +239,7 @@ public class SysRoleController extends BaseController
|
|
|
|
|
* 批量选择用户授权
|
|
|
|
|
*/
|
|
|
|
|
// @PreAuthorize("@ss.hasPermi('system:role:edit')")
|
|
|
|
|
@Log(title = "角色管理", businessType = BusinessType.GRANT)
|
|
|
|
|
// @Log(title = "角色管理", businessType = BusinessType.GRANT)
|
|
|
|
|
@PutMapping("/authUser/selectAll")
|
|
|
|
|
public AjaxResult selectAuthUserAll(Long roleId, Long[] userIds)
|
|
|
|
|
{
|
|
|
|
|