diff --git a/src/main/java/com/api/jaebichuri/shipping/controller/ShippingController.java b/src/main/java/com/api/jaebichuri/shipping/controller/ShippingController.java index 2b7b805..ff1ec10 100644 --- a/src/main/java/com/api/jaebichuri/shipping/controller/ShippingController.java +++ b/src/main/java/com/api/jaebichuri/shipping/controller/ShippingController.java @@ -2,7 +2,7 @@ import com.api.jaebichuri.global.response.ApiResponse; import com.api.jaebichuri.member.entity.Member; -import com.api.jaebichuri.shipping.dto.shippingDetailsDto; +import com.api.jaebichuri.shipping.dto.ShippingDetailsDto; import com.api.jaebichuri.shipping.dto.ShippingStatusCountDto; import com.api.jaebichuri.shipping.service.ShippingService; import io.swagger.v3.oas.annotations.Operation; @@ -50,12 +50,12 @@ public ResponseEntity> getShippingStatusCoun @io.swagger.v3.oas.annotations.responses.ApiResponse( responseCode = "COMMON200", description = "배송 중인 물품 정보 조회 결과", - content = @Content(schema = @Schema(implementation = shippingDetailsDto.class)) + content = @Content(schema = @Schema(implementation = ShippingDetailsDto.class)) ) } ) @GetMapping("/details") - public ResponseEntity>> getShippingDetails(@AuthenticationPrincipal Member member) { + public ResponseEntity>> getShippingDetails(@AuthenticationPrincipal Member member) { return ResponseEntity.ok(ApiResponse.onSuccess(shippingService.getShippingDetails(member))); } diff --git a/src/main/java/com/api/jaebichuri/shipping/dto/shippingDetailsDto.java b/src/main/java/com/api/jaebichuri/shipping/dto/ShippingDetailsDto.java similarity index 100% rename from src/main/java/com/api/jaebichuri/shipping/dto/shippingDetailsDto.java rename to src/main/java/com/api/jaebichuri/shipping/dto/ShippingDetailsDto.java diff --git a/src/main/java/com/api/jaebichuri/shipping/mapper/ShippingMapper.java b/src/main/java/com/api/jaebichuri/shipping/mapper/ShippingMapper.java index b571d06..52f25c6 100644 --- a/src/main/java/com/api/jaebichuri/shipping/mapper/ShippingMapper.java +++ b/src/main/java/com/api/jaebichuri/shipping/mapper/ShippingMapper.java @@ -1,7 +1,7 @@ package com.api.jaebichuri.shipping.mapper; import com.api.jaebichuri.product.entity.AuctionProductImage; -import com.api.jaebichuri.shipping.dto.shippingDetailsDto; +import com.api.jaebichuri.shipping.dto.ShippingDetailsDto; import com.api.jaebichuri.shipping.entity.Shipping; import org.mapstruct.Mapper; import org.mapstruct.Mapping; @@ -19,9 +19,9 @@ public interface ShippingMapper { @Mapping(source = "auction.auctionCategory", target = "auctionCategory") @Mapping(source = "auction.finalBidPrice", target = "finalBidPrice") @Mapping(target = "imageUrl", expression = "java(getRepresentativeImageUrl(shipping.getAuction().getProduct().getImages()))") - shippingDetailsDto toShippingDetailsDto(Shipping shipping); + ShippingDetailsDto toShippingDetailsDto(Shipping shipping); - List toShippingDetailsDtoList(List shippings); + List toShippingDetailsDtoList(List shippings); default String getRepresentativeImageUrl(List images) { return images.stream() diff --git a/src/main/java/com/api/jaebichuri/shipping/service/ShippingService.java b/src/main/java/com/api/jaebichuri/shipping/service/ShippingService.java index 9bbfea9..188c935 100644 --- a/src/main/java/com/api/jaebichuri/shipping/service/ShippingService.java +++ b/src/main/java/com/api/jaebichuri/shipping/service/ShippingService.java @@ -1,7 +1,7 @@ package com.api.jaebichuri.shipping.service; import com.api.jaebichuri.member.entity.Member; -import com.api.jaebichuri.shipping.dto.shippingDetailsDto; +import com.api.jaebichuri.shipping.dto.ShippingDetailsDto; import com.api.jaebichuri.shipping.dto.ShippingStatusCountDto; import com.api.jaebichuri.shipping.entity.Shipping; import com.api.jaebichuri.shipping.enums.ShippingStatus; @@ -31,7 +31,7 @@ public ShippingStatusCountDto getShippingStatusCount(Member member) { } @Transactional(readOnly = true) - public List getShippingDetails(Member member) { + public List getShippingDetails(Member member) { List shipping = shippingRepository.findByAuction_Seller(member); return shippingMapper.toShippingDetailsDtoList(shipping);