From edb08cf4571086fcf9269026a75158f9e81f41fe Mon Sep 17 00:00:00 2001 From: JIUNG GU <60885635+JIUNG9@users.noreply.github.com> Date: Tue, 23 Jan 2024 14:07:24 +0900 Subject: [PATCH] fix: fix the feign client dto --- .../flower/auth/store/dto/CreateStoreMangerCommand.java | 3 +++ .../auth/store/mapper/StoreManagerMessageMapper.java | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/bit/lot/flower/auth/store/dto/CreateStoreMangerCommand.java b/src/main/java/com/bit/lot/flower/auth/store/dto/CreateStoreMangerCommand.java index 7b25143c..fb25caf2 100644 --- a/src/main/java/com/bit/lot/flower/auth/store/dto/CreateStoreMangerCommand.java +++ b/src/main/java/com/bit/lot/flower/auth/store/dto/CreateStoreMangerCommand.java @@ -12,6 +12,7 @@ @NoArgsConstructor @Getter public class CreateStoreMangerCommand { + @NotNull private Long id; @NotNull @@ -19,6 +20,8 @@ public class CreateStoreMangerCommand { @NotNull private String businessNumberImage; @NotNull + private String businessNumber; + @NotNull private String name; } diff --git a/src/main/java/com/bit/lot/flower/auth/store/mapper/StoreManagerMessageMapper.java b/src/main/java/com/bit/lot/flower/auth/store/mapper/StoreManagerMessageMapper.java index 92664219..7bae69a0 100644 --- a/src/main/java/com/bit/lot/flower/auth/store/mapper/StoreManagerMessageMapper.java +++ b/src/main/java/com/bit/lot/flower/auth/store/mapper/StoreManagerMessageMapper.java @@ -7,9 +7,14 @@ public class StoreManagerMessageMapper { + private StoreManagerMessageMapper(){ + + + } + public static CreateStoreMangerCommand createStoreManagerCommandWithPk(StoreMangerSignUpCommand dto, Long id) { return CreateStoreMangerCommand.builder().businessNumberImage(dto.getBusinessNumberImage()).email( - dto.getEmail()).name(dto.getName()).id(id).build(); + dto.getEmail()).name(dto.getName()).id(id).businessNumber(dto.getBusinessNumber()).build(); } public static StoreManagerLoginResponseWithNameAndStoreId createLoginResponse(String name,