-
Notifications
You must be signed in to change notification settings - Fork 2
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 #45 from LikeLion-12th-SKHU/develop
Develop -> main push
- Loading branch information
Showing
12 changed files
with
157 additions
and
21 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
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
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
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
20 changes: 20 additions & 0 deletions
20
...ain/java/org/likelion/likelion_12th_team05/user/api/dto/request/UserInfoUpdateReqDto.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,20 @@ | ||
package org.likelion.likelion_12th_team05.user.api.dto.request; | ||
|
||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.Pattern; | ||
import jakarta.validation.constraints.Size; | ||
|
||
public record UserInfoUpdateReqDto( | ||
@NotBlank(message = "์ด๋ฆ์ ํ์๋ก ์ ๋ ฅํด์ผ ํฉ๋๋ค.") | ||
@Size(min = 2, max = 15, message = "2์ ์ด์, 15์ ์ดํ๋ก ์ ๋ ฅํ์ธ์.") | ||
String name, | ||
|
||
@NotBlank(message = "๋น๋ฐ๋ฒํธ๋ฅผ ํ์๋ก ์ ๋ ฅํด์ผ ํฉ๋๋ค.") | ||
@Size(min = 8, message = "8์ ์ด์ ์ ๋ ฅํ์ธ์.") | ||
String password, | ||
|
||
@NotBlank(message = "์ด๋ฉ์ผ์ ํ์๋ก ์ ๋ ฅํด์ผ ํฉ๋๋ค.") | ||
@Pattern(regexp = "^[A-Za-z0-9+_.-]+@[A-Za-z0-9.-]+.[A-Za-z]{2,6}$", message = "์ด๋ฉ์ผ ํ์์ด ๋ง์ง ์์ต๋๋ค.") | ||
String email | ||
) { | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/org/likelion/likelion_12th_team05/user/api/dto/response/UserInfoResDto.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,19 @@ | ||
package org.likelion.likelion_12th_team05.user.api.dto.response; | ||
|
||
import lombok.Builder; | ||
import org.likelion.likelion_12th_team05.user.domain.User; | ||
|
||
@Builder | ||
public record UserInfoResDto( | ||
Long userId, | ||
String name, | ||
String email | ||
) { | ||
public static UserInfoResDto from(User user) { | ||
return UserInfoResDto.builder() | ||
.name(user.getName()) | ||
.email(user.getEmail()) | ||
.userId(user.getId()) | ||
.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