remove unnecessary parameters

This commit is contained in:
mirrerror
2023-12-01 21:16:47 +02:00
parent ccf43a50e8
commit d90cf83d98
2 changed files with 2 additions and 10 deletions

View File

@@ -134,12 +134,8 @@ public class ExpenseController {
}
@GetMapping("/extend-data")
public ResponseEntity<List<BigDecimal>> extendData(@RequestParam Optional<String> userUuid,
@RequestParam Optional<String> extendValue,
public ResponseEntity<List<BigDecimal>> extendData(@RequestParam Optional<String> extendValue,
@RequestParam Optional<Integer> extrapolationCount) {
if(userUuid.isEmpty())
throw new RequiredParamMissingException("User UUID has not been specified");
if(extendValue.isEmpty())
throw new RequiredParamMissingException("Extend value has not been specified");

View File

@@ -134,12 +134,8 @@ public class IncomeController {
}
@GetMapping("/extend-data")
public ResponseEntity<List<BigDecimal>> extendData(@RequestParam Optional<String> userUuid,
@RequestParam Optional<String> extendValue,
public ResponseEntity<List<BigDecimal>> extendData(@RequestParam Optional<String> extendValue,
@RequestParam Optional<Integer> extrapolationCount) {
if(userUuid.isEmpty())
throw new RequiredParamMissingException("User UUID has not been specified");
if(extendValue.isEmpty())
throw new RequiredParamMissingException("Extend value has not been specified");