diff --git a/src/main/java/com/flab/shoeauction/controller/dto/AddressDto.java b/src/main/java/com/flab/shoeauction/controller/dto/AddressDto.java index 522694f..ce6b972 100644 --- a/src/main/java/com/flab/shoeauction/controller/dto/AddressDto.java +++ b/src/main/java/com/flab/shoeauction/controller/dto/AddressDto.java @@ -40,7 +40,7 @@ public Address toEntity() { } @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) public static class IdRequest { private Long id; diff --git a/src/main/java/com/flab/shoeauction/controller/dto/BrandDto.java b/src/main/java/com/flab/shoeauction/controller/dto/BrandDto.java index 2a7cae6..834ee04 100644 --- a/src/main/java/com/flab/shoeauction/controller/dto/BrandDto.java +++ b/src/main/java/com/flab/shoeauction/controller/dto/BrandDto.java @@ -2,6 +2,7 @@ import com.flab.shoeauction.domain.brand.Brand; import javax.validation.constraints.NotBlank; +import lombok.AccessLevel; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Getter; @@ -11,7 +12,7 @@ public class BrandDto { @Getter @Builder - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) @AllArgsConstructor public static class SaveRequest { @@ -44,7 +45,7 @@ public Brand toEntity() { } @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) @AllArgsConstructor @Builder public static class BrandInfo { diff --git a/src/main/java/com/flab/shoeauction/controller/dto/PointDto.java b/src/main/java/com/flab/shoeauction/controller/dto/PointDto.java index d63800a..beccbf6 100644 --- a/src/main/java/com/flab/shoeauction/controller/dto/PointDto.java +++ b/src/main/java/com/flab/shoeauction/controller/dto/PointDto.java @@ -5,6 +5,7 @@ import com.flab.shoeauction.domain.users.user.User; import com.flab.shoeauction.service.encrytion.EncryptionService; import java.time.LocalDateTime; +import lombok.AccessLevel; import lombok.Builder; import lombok.Getter; import lombok.NoArgsConstructor; @@ -12,7 +13,7 @@ public class PointDto { @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) public static class ChargeRequest { private Long chargeAmount; @@ -32,7 +33,7 @@ public Point toEntity(User user) { } @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) public static class WithdrawalRequest { private Long withdrawalAmount; @@ -58,7 +59,7 @@ public Point toEntity(User user) { } @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) public static class PointHistoryDto { private LocalDateTime time; diff --git a/src/main/java/com/flab/shoeauction/controller/dto/ProductDto.java b/src/main/java/com/flab/shoeauction/controller/dto/ProductDto.java index c27b9ec..7da2dc0 100644 --- a/src/main/java/com/flab/shoeauction/controller/dto/ProductDto.java +++ b/src/main/java/com/flab/shoeauction/controller/dto/ProductDto.java @@ -14,6 +14,7 @@ import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; import javax.validation.constraints.Positive; +import lombok.AccessLevel; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Getter; @@ -23,7 +24,7 @@ public class ProductDto { @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) @Builder @AllArgsConstructor public static class SaveRequest { @@ -112,7 +113,7 @@ public void deleteImagePath() { } @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) @AllArgsConstructor @Builder public static class ProductInfoResponse { @@ -138,7 +139,7 @@ public static class ProductInfoResponse { } @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) @AllArgsConstructor @Builder public static class ProductInfoByTrade { @@ -166,7 +167,7 @@ public IdRequest(Long id) { } @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) public static class WishItemResponse { private Long id; @@ -189,7 +190,7 @@ public WishItemResponse(Long id, Long productId, String nameKor, String nameEng, @Getter @Builder - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) @AllArgsConstructor public static class ThumbnailResponse { @@ -203,7 +204,7 @@ public static class ThumbnailResponse { @Builder @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) @AllArgsConstructor public static class SearchCondition { diff --git a/src/main/java/com/flab/shoeauction/controller/dto/TradeDto.java b/src/main/java/com/flab/shoeauction/controller/dto/TradeDto.java index fd51c49..7d54c46 100644 --- a/src/main/java/com/flab/shoeauction/controller/dto/TradeDto.java +++ b/src/main/java/com/flab/shoeauction/controller/dto/TradeDto.java @@ -7,6 +7,7 @@ import com.flab.shoeauction.domain.trade.Trade; import com.flab.shoeauction.domain.trade.TradeStatus; import com.flab.shoeauction.domain.users.user.User; +import lombok.AccessLevel; import lombok.Builder; import lombok.Getter; import lombok.NoArgsConstructor; @@ -14,7 +15,7 @@ public class TradeDto { @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) public static class TradeResource { private TradeUserInfo tradeUserInfo; @@ -29,7 +30,7 @@ public TradeResource( } @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) public static class TradeBidResponse { private Long tradeId; @@ -47,7 +48,7 @@ public TradeBidResponse(Long tradeId, Long productId, double productSize, Long p } @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) public static class ChangeRequest { private Long tradeId; @@ -61,7 +62,7 @@ public ChangeRequest(Long tradeId, Long price) { } @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) public static class SaveRequest { private Long price; @@ -106,7 +107,7 @@ public Trade toEntityByBuyer(User user, Product product, Address address) { } @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) public static class ImmediateTradeRequest { private Long tradeId; @@ -122,7 +123,7 @@ public ImmediateTradeRequest(Long tradeId, Long addressId, Long productId) { } @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) public static class TrackingNumberRequest { private String trackingNumber; @@ -134,7 +135,7 @@ public TrackingNumberRequest(String trackingNumber) { } @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) public static class ReasonRequest { private String reason; diff --git a/src/main/java/com/flab/shoeauction/controller/dto/UserDto.java b/src/main/java/com/flab/shoeauction/controller/dto/UserDto.java index 34049c7..4466424 100644 --- a/src/main/java/com/flab/shoeauction/controller/dto/UserDto.java +++ b/src/main/java/com/flab/shoeauction/controller/dto/UserDto.java @@ -13,18 +13,16 @@ import javax.validation.constraints.NotBlank; import javax.validation.constraints.Pattern; import javax.validation.constraints.Size; +import lombok.AccessLevel; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Getter; import lombok.NoArgsConstructor; -@Getter -@AllArgsConstructor -@Builder public class UserDto { @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) public static class SaveRequest { @NotBlank(message = "닉네임을 입력해주세요.") @@ -71,7 +69,7 @@ public User toEntity() { } @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) public static class SmsCertificationRequest { private String phone; @@ -86,7 +84,7 @@ public SmsCertificationRequest(String phone, String certificationNumber) { } @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) public static class EmailCertificationRequest { private String email; @@ -104,7 +102,7 @@ public EmailCertificationRequest(String email, String certificationNumber) { @Getter @Builder @AllArgsConstructor - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) public static class LoginRequest { private String email; @@ -117,7 +115,7 @@ public void passwordEncryption(EncryptionService encryptionService) { } @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) public static class UserInfoDto { private String email; @@ -150,7 +148,7 @@ public FindUserResponse(String email, String phone) { } @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) public static class ChangePasswordRequest { private String email; @@ -177,7 +175,7 @@ public ChangePasswordRequest(String email, } @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) public static class PasswordRequest { private String password; @@ -189,7 +187,6 @@ public PasswordRequest(String password) { } @Getter - @NoArgsConstructor public static class UserListResponse { private Long id; @@ -205,7 +202,7 @@ public UserListResponse(Long id, String email, UserLevel userLevel) { } @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) public static class UserSearchCondition { private Long id; @@ -221,7 +218,6 @@ public UserSearchCondition(Long id, String email, UserLevel userLevel) { } @Getter - @NoArgsConstructor public static class UserDetailsResponse { private Long id; @@ -253,7 +249,7 @@ public UserDetailsResponse(Long id, String email, String nickname, String phone, } @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) public static class UserBanRequest { private Long id; @@ -267,7 +263,7 @@ public UserBanRequest(Long id, UserStatus userStatus) { } @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) public static class TradeUserInfo { private AddressBook addressBook; @@ -282,7 +278,7 @@ public TradeUserInfo(AddressBook addressBook, } @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) public static class TradeInfoResponse { private Long id; @@ -298,7 +294,7 @@ public TradeInfoResponse(Long id, TradeStatus status, String email) { } @Getter - @NoArgsConstructor + @NoArgsConstructor(access = AccessLevel.PROTECTED) public static class TradeSearchCondition { private Long tradeId; private TradeStatus tradeStatus; @@ -309,6 +305,4 @@ public TradeSearchCondition(Long tradeId, TradeStatus tradeStatus) { this.tradeStatus = tradeStatus; } } - - } \ No newline at end of file