refractor: lint
This commit is contained in:
parent
aa9a870e94
commit
9fbc2f3a14
2 changed files with 14 additions and 12 deletions
|
|
@ -89,8 +89,8 @@ public class DroneController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/queryAvailableDrones")
|
@PostMapping("/queryAvailableDrones")
|
||||||
public int[] queryAvailableDrones(@RequestBody MedDispathRecDto[] records) {
|
public String[] queryAvailableDrones(@RequestBody MedDispathRecDto[] records) {
|
||||||
return new int[] {};
|
return droneService.dronesMatchesRequirements(records);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/calcDeliveryPath")
|
@PostMapping("/calcDeliveryPath")
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ package io.github.js0ny.ilp_coursework.service;
|
||||||
|
|
||||||
import io.github.js0ny.ilp_coursework.data.AttrComparatorDto;
|
import io.github.js0ny.ilp_coursework.data.AttrComparatorDto;
|
||||||
import io.github.js0ny.ilp_coursework.data.DroneDto;
|
import io.github.js0ny.ilp_coursework.data.DroneDto;
|
||||||
|
import io.github.js0ny.ilp_coursework.data.MedDispathRecDto;
|
||||||
import io.github.js0ny.ilp_coursework.util.AttrOperator;
|
import io.github.js0ny.ilp_coursework.util.AttrOperator;
|
||||||
|
|
||||||
import static io.github.js0ny.ilp_coursework.util.AttrComparator.isValueMatched;
|
import static io.github.js0ny.ilp_coursework.util.AttrComparator.isValueMatched;
|
||||||
|
|
@ -119,7 +120,8 @@ public class DroneInfoService {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return an array of ids of drones which matches all given complex comparing rules
|
* Return an array of ids of drones which matches all given complex comparing
|
||||||
|
* rules
|
||||||
*
|
*
|
||||||
* @param attrComparators The filter rule with Name, Value and Operator
|
* @param attrComparators The filter rule with Name, Value and Operator
|
||||||
* @return array of drone ids that matches all rules
|
* @return array of drone ids that matches all rules
|
||||||
|
|
@ -190,7 +192,7 @@ public class DroneInfoService {
|
||||||
.toArray(String[]::new);
|
.toArray(String[]::new);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int[] dronesMatchesRequirements() {
|
public String[] dronesMatchesRequirements(MedDispathRecDto[] rec) {
|
||||||
return new int[]{};
|
return new String[] {};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue