Skip to content

Commit

Permalink
fix : 변수명 수정 - #67
Browse files Browse the repository at this point in the history
  • Loading branch information
lreowy committed Jan 17, 2025
1 parent b909099 commit f43f814
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions cakey-api/src/main/java/com/cakey/cake/dto/CakeInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ public record CakeInfo(
Station station,
boolean isLiked,
String imageUrl,
int cakeLikeCount
int cakeLikesCount
) {
public static CakeInfo of(final long cakeId,
final long storeId,
final String storeName,
final Station station,
final boolean isLiked,
final String imageUrl,
final int cakeLikeCount
final int cakeLikesCount
) {
return CakeInfo.builder()
.cakeId(cakeId)
Expand All @@ -29,7 +29,7 @@ public static CakeInfo of(final long cakeId,
.station(station)
.isLiked(isLiked)
.imageUrl(imageUrl)
.cakeLikeCount(cakeLikeCount)
.cakeLikesCount(cakeLikesCount)
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public void postCakeLike(final Long cakeId, final Long userId) {
public CakeSelectedRes getSelectedCakes(final Long cakeId,
final DayCategory dayCategory,
final ThemeName theme,
final Long userId) {
final Long userId) {

///스토어 정보 조회
final StoreBySelectedCakeDto storeInfoDto = storeFacade.findStoreBySelectedCakeId(cakeId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ public ResponseEntity<BaseResponse<?>> getStoreInformation(@PathVariable("storeI
}

@GetMapping("/rank")
public ResponseEntity<BaseResponse<?>> getStoreByLank(){
return ApiResponseUtil.success(SuccessCode.OK, storeService.getStoreByLank());
public ResponseEntity<BaseResponse<?>> getStoreByRank(){
return ApiResponseUtil.success(SuccessCode.OK, storeService.getStoreByRank());
}

@GetMapping("/{storeId}/select/coordinate")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public StoreDetailInfoRes getStoreDetailInfo(final long storeId) {
}
}

public StoreListByPopularityRes getStoreByLank() {
public StoreListByPopularityRes getStoreByRank() {
final List<StoreByPopularityDto> storeByPopularityDtoList = storeFacade.findStoreListByLank();
return new StoreListByPopularityRes(storeByPopularityDtoList);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ public record CakeByPopularityDto(
Long storeId,
String imageUrl,
String storeName,
Long cakeLike,
Long cakeLikesCount,
Station station,
boolean isLiked
) {
public static CakeByPopularityDto from(final Long cakeId,
final Long storeId,
final String imageUrl,
final String storeName,
final Long cakeLike,
final Long cakeLikesCount,
final Station station,
final boolean isLiked
) {
return new CakeByPopularityDto(cakeId, storeId, imageUrl, storeName, cakeLike, station, isLiked);
return new CakeByPopularityDto(cakeId, storeId, imageUrl, storeName, cakeLikesCount, station, isLiked);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
public record StoreByPopularityDto(
Long storeId,
String storeName,
Long storeLike,
Long storeLikesCount,
Station station
) {
public StoreByPopularityDto of(final Long storeId, final String storeName, final Long storeLike, final Station station) {
public StoreByPopularityDto of(final Long storeId, final String storeName, final Long storeLikesCount, final Station station) {
return StoreByPopularityDto.builder()
.storeId(storeId)
.storeName(storeName)
.storeLike(storeLike)
.storeLikesCount(storeLikesCount)
.station(station)
.build();
}
Expand Down

0 comments on commit f43f814

Please sign in to comment.