-
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.
- NicknameRequest 이동 - Profile 관련 ProfileRequest로 통합해서 관리 - Logout, Refresh 나누기
- Loading branch information
Showing
10 changed files
with
71 additions
and
84 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
src/main/java/kr/startoff/backend/domain/user/dto/request/LogoutRequest.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,26 @@ | ||
package kr.startoff.backend.domain.user.dto.request; | ||
|
||
import javax.validation.constraints.Email; | ||
import javax.validation.constraints.NotBlank; | ||
|
||
import com.fasterxml.jackson.databind.PropertyNamingStrategies; | ||
import com.fasterxml.jackson.databind.annotation.JsonNaming; | ||
|
||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) | ||
public class LogoutRequest { | ||
@NotBlank | ||
private String uuid; | ||
|
||
@NotBlank | ||
private String accessToken; | ||
|
||
public LogoutRequest(String uuid, String accessToken) { | ||
this.uuid = uuid; | ||
this.accessToken = accessToken; | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/main/java/kr/startoff/backend/domain/user/dto/request/NicknameRequest.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,8 @@ | ||
package kr.startoff.backend.domain.user.dto.request; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public class NicknameRequest { | ||
String nickname; | ||
} |
23 changes: 23 additions & 0 deletions
23
src/main/java/kr/startoff/backend/domain/user/dto/request/ProfileRequest.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,23 @@ | ||
package kr.startoff.backend.domain.user.dto.request; | ||
|
||
import kr.startoff.backend.domain.user.domain.Profile; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class ProfileRequest { | ||
private String githubUrl; | ||
private String blogUrl; | ||
private String baekjoonId; | ||
private String introduce; | ||
|
||
public Profile toEntity() { | ||
return Profile.builder() | ||
.githubUrl(githubUrl) | ||
.blogUrl(blogUrl) | ||
.baekjoonId(baekjoonId) | ||
.introduce(introduce) | ||
.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
2 changes: 1 addition & 1 deletion
2
.../dto/request/profile/SkillTagRequest.java → ...ain/user/dto/request/SkillTagRequest.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
18 changes: 0 additions & 18 deletions
18
src/main/java/kr/startoff/backend/domain/user/dto/request/profile/BaekjoonIdRequest.java
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
src/main/java/kr/startoff/backend/domain/user/dto/request/profile/BlogUrlRequest.java
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
src/main/java/kr/startoff/backend/domain/user/dto/request/profile/GithubUrlRequest.java
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
src/main/java/kr/startoff/backend/domain/user/dto/request/profile/IntroduceRequest.java
This file was deleted.
Oops, something went wrong.
22 changes: 11 additions & 11 deletions
22
src/main/java/kr/startoff/backend/domain/user/dto/response/UserProfileResponse.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