diff --git a/src/main/java/com/example/ai_jeju/controller/TasteController.java b/src/main/java/com/example/ai_jeju/controller/TasteController.java index 5b434c4..723fa76 100644 --- a/src/main/java/com/example/ai_jeju/controller/TasteController.java +++ b/src/main/java/com/example/ai_jeju/controller/TasteController.java @@ -25,7 +25,7 @@ public TasteController(TokenProvider tokenProvider) { } @GetMapping("/taste") - ResponseDto getTasteOptions(@RequestParam int category, int randomSeed) { + ResponseDto getTasteOptions(@RequestParam("category") int category, @RequestParam("randomSeed") int randomSeed) { return ResponseUtil.SUCCESS("", tasteService.getTasteOptions(category, randomSeed)); } diff --git a/src/main/java/com/example/ai_jeju/dto/TasteOptionResponse.java b/src/main/java/com/example/ai_jeju/dto/TasteOptionResponse.java index 4ee669e..60554da 100644 --- a/src/main/java/com/example/ai_jeju/dto/TasteOptionResponse.java +++ b/src/main/java/com/example/ai_jeju/dto/TasteOptionResponse.java @@ -10,5 +10,6 @@ public class TasteOptionResponse { private Long storeId; private String imgSrc; + private String name; } diff --git a/src/main/java/com/example/ai_jeju/service/TasteService.java b/src/main/java/com/example/ai_jeju/service/TasteService.java index b975f6b..aaf454e 100644 --- a/src/main/java/com/example/ai_jeju/service/TasteService.java +++ b/src/main/java/com/example/ai_jeju/service/TasteService.java @@ -35,6 +35,7 @@ public List getTasteOptions(int category, int randomSeed) { TasteOptionResponse tasteOptionResponse = TasteOptionResponse.builder() .storeId(store.getStoreId()) .imgSrc(store.getImgSrc()) + .name(store.getName()) .build(); tasteOptionResponses.add(tasteOptionResponse);