remove unnecessary parameters
This commit is contained in:
@@ -134,12 +134,8 @@ public class ExpenseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/extend-data")
|
@GetMapping("/extend-data")
|
||||||
public ResponseEntity<List<BigDecimal>> extendData(@RequestParam Optional<String> userUuid,
|
public ResponseEntity<List<BigDecimal>> extendData(@RequestParam Optional<String> extendValue,
|
||||||
@RequestParam Optional<String> extendValue,
|
|
||||||
@RequestParam Optional<Integer> extrapolationCount) {
|
@RequestParam Optional<Integer> extrapolationCount) {
|
||||||
if(userUuid.isEmpty())
|
|
||||||
throw new RequiredParamMissingException("User UUID has not been specified");
|
|
||||||
|
|
||||||
if(extendValue.isEmpty())
|
if(extendValue.isEmpty())
|
||||||
throw new RequiredParamMissingException("Extend value has not been specified");
|
throw new RequiredParamMissingException("Extend value has not been specified");
|
||||||
|
|
||||||
|
|||||||
@@ -134,12 +134,8 @@ public class IncomeController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/extend-data")
|
@GetMapping("/extend-data")
|
||||||
public ResponseEntity<List<BigDecimal>> extendData(@RequestParam Optional<String> userUuid,
|
public ResponseEntity<List<BigDecimal>> extendData(@RequestParam Optional<String> extendValue,
|
||||||
@RequestParam Optional<String> extendValue,
|
|
||||||
@RequestParam Optional<Integer> extrapolationCount) {
|
@RequestParam Optional<Integer> extrapolationCount) {
|
||||||
if(userUuid.isEmpty())
|
|
||||||
throw new RequiredParamMissingException("User UUID has not been specified");
|
|
||||||
|
|
||||||
if(extendValue.isEmpty())
|
if(extendValue.isEmpty())
|
||||||
throw new RequiredParamMissingException("Extend value has not been specified");
|
throw new RequiredParamMissingException("Extend value has not been specified");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user