Skip to content

Commit

Permalink
[refactor] long to Long
Browse files Browse the repository at this point in the history
  • Loading branch information
PicturePark1101 committed Jul 11, 2024
1 parent c2b5f21 commit 6507d81
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class FavoriteController {
private final FavoriteQueryService favoriteQueryService;

@GetMapping("/favorites/{favoriteId}")
public HankkiResponse<FavoriteFindResponse> getFavorite(@PathVariable(name = "favoriteId") long favoriteId) {
public HankkiResponse<FavoriteFindResponse> getFavorite(@PathVariable(name = "favoriteId") Long favoriteId) {
return HankkiResponse.success(CommonSuccessCode.OK, favoriteQueryService.findFavorite(favoriteId));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class FavoriteFinder {

private final FavoriteRepository favoriteRepository;

public Favorite findById(final long id) {
public Favorite findById(final Long id) {
return favoriteRepository.findById(id).orElseThrow(() -> new NotFoundException(FavoriteErrorCode.FAVORITE_NOT_FOUND));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class FavoriteQueryService {
private final FavoriteFinder favoriteFinder;

@Transactional(readOnly = true)
public FavoriteFindResponse findFavorite(final long id) {
public FavoriteFindResponse findFavorite(final Long id) {

Favorite favorite = favoriteFinder.findById(id);
List<Store> stores = favorite.getFavoriteStores().stream().map(FavoriteStore::getStore).toList();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import org.hankki.hankkiserver.domain.store.model.StoreCategory;

public record FavoriteStoreFindResponse(
long id,
Long id,
String name,
String imageUrl,
String storeCategory,
Expand Down

0 comments on commit 6507d81

Please sign in to comment.