refactor: 删除无用代码

This commit is contained in:
avanb 2022-01-20 12:54:46 +08:00
parent 1bb7bf846f
commit 97adaf7526

View File

@ -40,7 +40,6 @@ public class DirService {
} }
public List<DirItemDTO> query(DirRequest request) { public List<DirItemDTO> query(DirRequest request) {
// CurrentUserDto user = AuthUtils.getUser();
String userId = String.valueOf(AuthUtils.getUser().getUserId()); String userId = String.valueOf(AuthUtils.getUser().getUserId());
List<PanelEntity> panelEntities = new ArrayList<>(); List<PanelEntity> panelEntities = new ArrayList<>();
if (StringUtils.isNotBlank(request.getName())) { if (StringUtils.isNotBlank(request.getName())) {
@ -58,17 +57,6 @@ public class DirService {
return dirItemDTO; return dirItemDTO;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
return dtos; return dtos;
// if (user.getUserId() == 1 && StringUtils.equals("admin", user.getUsername())) {
// return dtos;
// }
// List<String> permissions = proxy().permissions();
// return dtos.stream().filter(
// dto -> permissions.stream().anyMatch(
// permission -> StringUtils.equals(permission, dto.getId())
// )
// ).collect(Collectors.toList());
} }
public DirService proxy() { public DirService proxy() {