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