-
Notifications
You must be signed in to change notification settings - Fork 0
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 #173 from nhnacademy-be4-ckin/feat/member
[FEAT] Member 관련
- Loading branch information
Showing
13 changed files
with
252 additions
and
26 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
18 changes: 18 additions & 0 deletions
18
src/main/java/store/ckin/api/member/domain/request/MemberPasswordRequestDto.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,18 @@ | ||
package store.ckin.api.member.domain.request; | ||
|
||
import javax.validation.constraints.NotBlank; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
/** | ||
* 비밀번호 변경을 요청 DTO 입니다. | ||
* | ||
* @author : jinwoolee | ||
* @version : 2024. 03. 24. | ||
*/ | ||
@Getter | ||
@NoArgsConstructor | ||
public class MemberPasswordRequestDto { | ||
@NotBlank | ||
private String password; | ||
} |
31 changes: 31 additions & 0 deletions
31
src/main/java/store/ckin/api/member/domain/request/MemberUpdateRequestDto.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,31 @@ | ||
package store.ckin.api.member.domain.request; | ||
|
||
import java.time.LocalDate; | ||
import javax.validation.constraints.NotBlank; | ||
import javax.validation.constraints.NotNull; | ||
import javax.validation.constraints.Size; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import org.springframework.format.annotation.DateTimeFormat; | ||
|
||
/** | ||
* 회원 정보 수정 요청 DTO 입니다. | ||
* | ||
* @author : jinwoolee | ||
* @version : 2024. 03. 24. | ||
*/ | ||
@Getter | ||
@NoArgsConstructor | ||
public class MemberUpdateRequestDto { | ||
@NotBlank | ||
@Size(min = 2, max = 10) | ||
private String name; | ||
|
||
@NotBlank | ||
@Size(min = 10, max = 11) | ||
private String contact; | ||
|
||
@NotNull | ||
@DateTimeFormat(pattern = "yyyy-MM-dd") | ||
private LocalDate birth; | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/store/ckin/api/member/domain/response/MemberDetailInfoResponseDto.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,21 @@ | ||
package store.ckin.api.member.domain.response; | ||
|
||
import java.time.LocalDate; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
/** | ||
* 회원 정보 페이지 요청에 대한 응답 DTO 입니다. | ||
* | ||
* @author : jinwoolee | ||
* @version : 2024. 03. 25. | ||
*/ | ||
@Getter | ||
@AllArgsConstructor | ||
public class MemberDetailInfoResponseDto { | ||
private String name; | ||
|
||
private String contact; | ||
|
||
private LocalDate birth; | ||
} |
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
16 changes: 16 additions & 0 deletions
16
src/main/java/store/ckin/api/member/domain/response/MemberPasswordResponseDto.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,16 @@ | ||
package store.ckin.api.member.domain.response; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
/** | ||
* 비밀번호 요청에 대한 응답 DTO 입니다. | ||
* | ||
* @author : jinwoolee | ||
* @version : 2024. 03. 24. | ||
*/ | ||
@Getter | ||
@AllArgsConstructor | ||
public class MemberPasswordResponseDto { | ||
private String 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
13 changes: 13 additions & 0 deletions
13
src/main/java/store/ckin/api/member/exception/MemberPasswordCannotChangeException.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,13 @@ | ||
package store.ckin.api.member.exception; | ||
|
||
/** | ||
* 비밀번호를 바꿀수 없을 때 호출되는 메서드 입니다. | ||
* | ||
* @author : jinwoolee | ||
* @version : 2024. 03. 24. | ||
*/ | ||
public class MemberPasswordCannotChangeException extends RuntimeException { | ||
public MemberPasswordCannotChangeException(Long memberId) { | ||
super(String.format("비밀번호를 바꿀 수 없습니다. ID : [%d]", memberId)); | ||
} | ||
} |
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
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
Oops, something went wrong.