-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from Tea-Bliss/dev
[fix] 회원 정보/비밀번호/주소 변경 API 추가 및 수정 완료
- Loading branch information
Showing
8 changed files
with
75 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/main/java/store/teabliss/member/dto/MemberAddressDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package store.teabliss.member.dto; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import store.teabliss.member.entity.Member; | ||
|
||
@Getter | ||
public class MemberAddressDto { | ||
|
||
@Schema(description = "회원 주소", example = "주소 입력") | ||
private String address; | ||
|
||
@Builder | ||
public Member toEntity(Long memId) { | ||
return Member.builder() | ||
.memId(memId) | ||
.address(address) | ||
.build(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,6 @@ | |
@Getter | ||
public class MemberEditDto { | ||
|
||
@Schema(description = "이메일 주소", example = "[email protected]") | ||
private String email; | ||
|
||
@Schema(description = "닉네임", example = "nickname") | ||
private String nickname; | ||
|
||
|
@@ -22,7 +19,6 @@ public class MemberEditDto { | |
public Member toEntity(Long memId) { | ||
return Member.builder() | ||
.memId(memId) | ||
.email(email) | ||
.nickname(nickname) | ||
.profile(profile) | ||
.build(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/main/java/store/teabliss/member/exception/NotEqualPasswordException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package store.teabliss.member.exception; | ||
|
||
public class NotEqualPasswordException extends MemberException { | ||
|
||
public NotEqualPasswordException(String type) { | ||
super(type.equals("old") ? MemberStatus.NOT_EQUAL_OLD_PASSWORD : MemberStatus.NOT_EQUAL_NEW_PASSWORD); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters