Skip to content

Commit

Permalink
Merge pull request #120 from KAKAO-TOUR-API-CONTEST/devyj
Browse files Browse the repository at this point in the history
FIX : taste반환값 수정
  • Loading branch information
yyujin1231 authored Sep 30, 2024
2 parents 0877c19 + 4dd984d commit 4846460
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ public class TasteOptionResponse {

private Long storeId;
private String imgSrc;
private String name;

}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public List<TasteOptionResponse> getTasteOptions(int category, int randomSeed) {
TasteOptionResponse tasteOptionResponse = TasteOptionResponse.builder()
.storeId(store.getStoreId())
.imgSrc(store.getImgSrc())
.name(store.getName())
.build();

tasteOptionResponses.add(tasteOptionResponse);
Expand Down

0 comments on commit 4846460

Please sign in to comment.