-
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 branch 'develop' into fe/refactor/#272
- Loading branch information
Showing
15 changed files
with
106 additions
and
34 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
12 changes: 0 additions & 12 deletions
12
backend/src/main/java/com/techeer/backend/api/user/converter/UserConverter.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
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
16 changes: 16 additions & 0 deletions
16
backend/src/test/java/com/techeer/backend/util/domain/ResumeUtils.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 com.techeer.backend.util.domain; | ||
|
||
import com.techeer.backend.api.resume.domain.Resume; | ||
import com.techeer.backend.api.tag.position.Position; | ||
|
||
public class ResumeUtils { | ||
public static Resume newInstance() { | ||
return Resume.builder() | ||
.user(UserUtils.newInstance()) // 연관된 User 객체 추가 | ||
.name("test_resume") | ||
.career(3) // 경력 (예: 3년) | ||
.position(Position.BACKEND) // 실제 Position Enum 값을 확인 후 넣어주세요 | ||
.resumePdf(null) // ResumePdf를 넣을 경우 적절한 객체를 생성해야 함 | ||
.build(); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
backend/src/test/java/com/techeer/backend/util/domain/UserUtils.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,17 @@ | ||
package com.techeer.backend.util.domain; | ||
|
||
import com.techeer.backend.api.user.domain.Role; | ||
import com.techeer.backend.api.user.domain.SocialType; | ||
import com.techeer.backend.api.user.domain.User; | ||
|
||
public class UserUtils { | ||
public static User newInstance() { | ||
return User.builder() | ||
.email("test_user@example.com") | ||
.username("test_man") | ||
.refreshToken("test_refresh_token") | ||
.role(Role.REGULAR) // 실제 Role Enum 값을 확인 후 넣어주세요 | ||
.socialType(SocialType.GOOGLE) // 실제 SocialType Enum 값을 확인 후 넣어주세요 | ||
.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export const formatDate = (isoString: string): string => { | ||
const date = new Date(isoString); | ||
return date.toLocaleDateString("ko-KR", { | ||
year: "numeric", | ||
month: "long", | ||
day: "numeric", | ||
}); | ||
}; |