Skip to content

Commit

Permalink
[test] cafe 선택 test 코드 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeesw committed May 6, 2024
1 parent 6b8cdef commit 40663b2
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,24 +54,4 @@ public ResponseEntity<Map<String, List<CafeUserProfileDto>>> getCafeUsers(@Authe
}
return ResponseEntity.ok(cafeUsersMap);
}

// POSTMAN 테스트 용 (카페 선택)
@PostMapping("test/cafe/update") // pcafe/update
public void publishCafeUpdate(@RequestBody CafeDto dto) throws JsonProcessingException {
log.info("Message Catch!!");
cafePublisher.updateCafeChoice(dto);
}

// POSTMAN 테스트 용 (get-users)
@PostMapping("test/cafe/get-users")
public ResponseEntity<Map<String, List<CafeUserProfileDto>>> redisTest(@RequestBody CafeListDto dto) {
List<String> cafeList = dto.getCafeList();
Map<String, List<CafeUserProfileDto>> cafeUsersMap = new HashMap<>(); //반환값

for (String cafeId : cafeList) {
List<CafeUserProfileDto> userProfileDtoList = cafeService.getUserProfilesFromRedisAndDB(cafeId);
cafeUsersMap.put(cafeId, userProfileDtoList);
}
return ResponseEntity.ok(cafeUsersMap);
}
}

0 comments on commit 40663b2

Please sign in to comment.