Skip to content

Commit

Permalink
Add required=false
Browse files Browse the repository at this point in the history
  • Loading branch information
Fagorym committed May 21, 2024
1 parent 664adea commit 704b686
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ public interface EstablishmentServiceClient {

@RequestMapping(method = RequestMethod.GET, value = "/establishment/all", produces = MediaType.APPLICATION_JSON_VALUE)
ResponseEntity<BaseResponse<EstablishmentListDto>> searchEstablishments(
@RequestParam Optional<String> name,
@RequestParam Optional<Boolean> hasMap,
@RequestParam Optional<Boolean> hasCardPayment,
@RequestParam Optional<String> category
@RequestParam(required = false) Optional<String> name,
@RequestParam(required = false) Optional<Boolean> hasMap,
@RequestParam(required = false) Optional<Boolean> hasCardPayment,
@RequestParam(required = false) Optional<String> category
);

@RequestMapping(method = RequestMethod.GET, value = "/internal/review", produces = MediaType.APPLICATION_JSON_VALUE)
Expand Down

0 comments on commit 704b686

Please sign in to comment.