|
|
@ -13,6 +13,7 @@ import com.huoran.iasf.service.RoleService; |
|
|
|
import com.huoran.iasf.vo.req.RolePermissionOperationReqVO; |
|
|
|
import com.huoran.iasf.vo.req.RolePermissionOperationReqVO; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
|
|
|
|
import io.swagger.annotations.ApiParam; |
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions; |
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions; |
|
|
|
import org.springframework.util.CollectionUtils; |
|
|
|
import org.springframework.util.CollectionUtils; |
|
|
|
import org.springframework.util.StringUtils; |
|
|
|
import org.springframework.util.StringUtils; |
|
|
@ -65,12 +66,12 @@ public class RoleController { |
|
|
|
return R.success(); |
|
|
|
return R.success(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@DeleteMapping("/role/{id}") |
|
|
|
@DeleteMapping("/role/deleted") |
|
|
|
@ApiOperation(value = "删除角色接口") |
|
|
|
@ApiOperation(value = "删除角色接口") |
|
|
|
@LogAnnotation(title = "角色管理", action = "删除角色") |
|
|
|
@LogAnnotation(title = "角色管理", action = "删除角色") |
|
|
|
@RequiresPermissions("sys:role:deleted") |
|
|
|
@RequiresPermissions("sys:role:deleted") |
|
|
|
public R deleted(@PathVariable("id") Integer id) { |
|
|
|
public R deleted(@RequestBody @ApiParam(value = "id集合") List<Integer> ids) { |
|
|
|
roleService.deletedRole(id); |
|
|
|
roleService.deletedRole(ids); |
|
|
|
return R.success(); |
|
|
|
return R.success(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|