diff --git a/backend/src/main/java/autoever2/cartag/cars/dto/CarInfoDto.java b/backend/src/main/java/autoever2/cartag/cars/dto/CarInfoDto.java index c24ec4a..5bc3078 100644 --- a/backend/src/main/java/autoever2/cartag/cars/dto/CarInfoDto.java +++ b/backend/src/main/java/autoever2/cartag/cars/dto/CarInfoDto.java @@ -1,13 +1,10 @@ package autoever2.cartag.cars.dto; -import lombok.Builder; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; +import lombok.*; @Getter @Setter -@NoArgsConstructor +@NoArgsConstructor(access = AccessLevel.PRIVATE) public class CarInfoDto { private int carId; diff --git a/backend/src/main/java/autoever2/cartag/cars/dto/CarTypeDto.java b/backend/src/main/java/autoever2/cartag/cars/dto/CarTypeDto.java index 0f6115d..c3682e1 100644 --- a/backend/src/main/java/autoever2/cartag/cars/dto/CarTypeDto.java +++ b/backend/src/main/java/autoever2/cartag/cars/dto/CarTypeDto.java @@ -1,14 +1,11 @@ package autoever2.cartag.cars.dto; import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Builder; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; +import lombok.*; @Getter @Setter -@NoArgsConstructor +@NoArgsConstructor(access = AccessLevel.PRIVATE) @Schema(description = "차종 ID와, 차종의 대표이미지, 차종명을 반환") public class CarTypeDto { diff --git a/backend/src/main/java/autoever2/cartag/cars/dto/TrimInfoDto.java b/backend/src/main/java/autoever2/cartag/cars/dto/TrimInfoDto.java index 5ca4468..e0edaf8 100644 --- a/backend/src/main/java/autoever2/cartag/cars/dto/TrimInfoDto.java +++ b/backend/src/main/java/autoever2/cartag/cars/dto/TrimInfoDto.java @@ -1,13 +1,10 @@ package autoever2.cartag.cars.dto; -import lombok.Builder; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; +import lombok.*; @Getter @Setter -@NoArgsConstructor +@NoArgsConstructor(access = AccessLevel.PRIVATE) public class TrimInfoDto { private int carId; private String trim; diff --git a/backend/src/main/java/autoever2/cartag/models/dto/ModelDefaultDto.java b/backend/src/main/java/autoever2/cartag/models/dto/ModelDefaultDto.java index 326def1..3532a1e 100644 --- a/backend/src/main/java/autoever2/cartag/models/dto/ModelDefaultDto.java +++ b/backend/src/main/java/autoever2/cartag/models/dto/ModelDefaultDto.java @@ -1,16 +1,25 @@ package autoever2.cartag.models.dto; +import lombok.AccessLevel; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; @Getter @Setter -@NoArgsConstructor +@NoArgsConstructor(access = AccessLevel.PRIVATE) public class ModelDefaultDto { private int modelId; private String modelName; private Long modelPrice; private String modelImage; private String modelTitle; + + public ModelDefaultDto(int modelId, String modelName, Long modelPrice, String modelImage, String modelTitle) { + this.modelId = modelId; + this.modelName = modelName; + this.modelPrice = modelPrice; + this.modelImage = modelImage; + this.modelTitle = modelTitle; + } } diff --git a/backend/src/main/java/autoever2/cartag/models/dto/ModelDetailMappedDto.java b/backend/src/main/java/autoever2/cartag/models/dto/ModelDetailMappedDto.java index e0101d4..7be466d 100644 --- a/backend/src/main/java/autoever2/cartag/models/dto/ModelDetailMappedDto.java +++ b/backend/src/main/java/autoever2/cartag/models/dto/ModelDetailMappedDto.java @@ -1,13 +1,10 @@ package autoever2.cartag.models.dto; import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Builder; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; +import lombok.*; @Setter -@NoArgsConstructor +@NoArgsConstructor(access = AccessLevel.PRIVATE) @Getter @Schema(description = "모델의 타입, 이름, 설명, 사진을 반환") public class ModelDetailMappedDto { diff --git a/backend/src/main/java/autoever2/cartag/models/dto/ModelEfficiencyDataDto.java b/backend/src/main/java/autoever2/cartag/models/dto/ModelEfficiencyDataDto.java index 848ac5a..a0da44e 100644 --- a/backend/src/main/java/autoever2/cartag/models/dto/ModelEfficiencyDataDto.java +++ b/backend/src/main/java/autoever2/cartag/models/dto/ModelEfficiencyDataDto.java @@ -1,13 +1,10 @@ package autoever2.cartag.models.dto; import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Builder; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; +import lombok.*; @Setter -@NoArgsConstructor +@NoArgsConstructor(access = AccessLevel.PRIVATE) @Getter @Schema(description = "파워트레인과 모델타입의 조합으로 나온 HMG 데이터를 반환") public class ModelEfficiencyDataDto { diff --git a/backend/src/main/java/autoever2/cartag/models/dto/ModelShortMappedDto.java b/backend/src/main/java/autoever2/cartag/models/dto/ModelShortMappedDto.java index ad3f7d4..b13f267 100644 --- a/backend/src/main/java/autoever2/cartag/models/dto/ModelShortMappedDto.java +++ b/backend/src/main/java/autoever2/cartag/models/dto/ModelShortMappedDto.java @@ -4,7 +4,7 @@ @Getter @Setter -@NoArgsConstructor +@NoArgsConstructor(access = AccessLevel.PRIVATE) public class ModelShortMappedDto { private int modelId;