-
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' of https://github.com/WE-ARE-RACCOONS/postgrad…
…uate-back into RAC-254
- Loading branch information
Showing
18 changed files
with
80 additions
and
22 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
2 changes: 1 addition & 1 deletion
2
...n/java/com/postgraduate/domain/mentoring/application/dto/ExpectedSeniorMentoringInfo.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.postgraduate.domain.mentoring.application.dto; | ||
|
||
public record ExpectedSeniorMentoringInfo(Long mentoringId, String profile, String nickName, int term, String date) { | ||
public record ExpectedSeniorMentoringInfo(Long mentoringId, String profile, String nickName, int term, String date, long dDay) { | ||
} |
2 changes: 1 addition & 1 deletion
2
...in/java/com/postgraduate/domain/mentoring/application/dto/WaitingSeniorMentoringInfo.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.postgraduate.domain.mentoring.application.dto; | ||
|
||
public record WaitingSeniorMentoringInfo(Long mentoringId, String profile, String nickName, int term, long remainTime) { | ||
public record WaitingSeniorMentoringInfo(Long mentoringId, String profile, String nickName, int term, String remainTime) { | ||
} |
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
21 changes: 21 additions & 0 deletions
21
src/main/java/com/postgraduate/domain/mentoring/util/DateUtils.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 com.postgraduate.domain.mentoring.util; | ||
|
||
import java.time.Duration; | ||
import java.time.LocalDateTime; | ||
import java.time.format.DateTimeFormatter; | ||
|
||
import static java.time.format.DateTimeFormatter.ofPattern; | ||
|
||
public class DateUtils { | ||
public static LocalDateTime stringToLocalDateTime(String date) { | ||
DateTimeFormatter formatter = ofPattern("yyyy-MM-dd-HH-mm"); | ||
return LocalDateTime.parse(date, formatter); | ||
} | ||
|
||
public static String remainTime(Duration duration) { | ||
long minutes = duration.toMinutes(); | ||
long hours = minutes / 60; | ||
minutes -= 60*hours; | ||
return (hours + "-" + minutes); | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/java/com/postgraduate/domain/senior/application/dto/res/AllSeniorIdResponse.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,6 @@ | ||
package com.postgraduate.domain.senior.application.dto.res; | ||
|
||
import java.util.List; | ||
|
||
public record AllSeniorIdResponse(List<Long> seniorIds) { | ||
} |
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
src/main/java/com/postgraduate/domain/senior/application/dto/res/SeniorPossibleResponse.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package com.postgraduate.domain.senior.application.dto.res; | ||
|
||
public record SeniorPossibleResponse(Boolean possible) {} | ||
public record SeniorPossibleResponse(Boolean possible, Long socialId) {} |
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
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