-
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.
Showing
25 changed files
with
519 additions
and
71 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
<<<<<<< HEAD | ||
ARG JAR_FILE=build/libs/*.jar | ||
COPY ${JAR_FILE} sopo-2.0.0.jar | ||
ENV TZ=Asia/Seoul | ||
ENTRYPOINT ["java","-jar","/sopo-2.0.0.jar","-Duser.timezone=Asia/Seoul"] | ||
======= | ||
FROM openjdk:17 | ||
ARG JAR_FILE=build/libs/SOPO_server_v2-0.0.2-SNAPSHOT.jar | ||
COPY ${JAR_FILE} sopo.jar | ||
ENTRYPOINT ["java","-jar","/sopo.jar"] | ||
ENTRYPOINT ["java","-jar","/sopo.jar"] | ||
>>>>>>> 12f73049a4d31fff0df65fbbc7b5fa5b6e7dd993 |
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ public record BoardUpdateReq( | |
String boardTitle, | ||
String boardContent | ||
) { | ||
} | ||
} |
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
21 changes: 16 additions & 5 deletions
21
src/main/java/kr/hs/dgsw/SOPO_server_v2/domain/contest/dto/ContestLoadRes.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,28 +1,39 @@ | ||
package kr.hs.dgsw.SOPO_server_v2.domain.contest.dto; | ||
|
||
import kr.hs.dgsw.SOPO_server_v2.domain.contest.entity.ContestEntity; | ||
import kr.hs.dgsw.SOPO_server_v2.domain.member.entity.MemberEntity; | ||
|
||
import java.time.LocalDateTime; | ||
import java.util.List; | ||
import java.util.stream.Collectors; | ||
|
||
public record ContestLoadRes ( | ||
Long contestId, | ||
String contestTitle, | ||
String contestContent, | ||
Integer contestMax, | ||
Integer contestPerson, | ||
LocalDateTime contestDateTime | ||
// List<String> fileUrls, | ||
// Long memberId | ||
LocalDateTime contestDateTime, | ||
String memberName, | ||
List<String> memberIdList | ||
) { | ||
public static ContestLoadRes of(ContestEntity contest) { | ||
List<String> memberIdList = contest.getMemberIdList().stream() | ||
.map(MemberEntity::getMemberId) | ||
.collect(Collectors.toList()); | ||
|
||
// 대회 생성자의 이름 가져오기 | ||
String memberName = contest.getMember().getMemberName(); | ||
|
||
return new ContestLoadRes ( | ||
contest.getContestId(), | ||
contest.getContestTitle(), | ||
contest.getContestContent(), | ||
contest.getContestMax(), | ||
contest.getContestPerson(), | ||
contest.getContestDateTime() | ||
//contest.getFile() Url을 String 으로 묶어서 받아야 함. | ||
contest.getContestDateTime(), | ||
memberName, | ||
memberIdList | ||
); | ||
} | ||
} |
2 changes: 0 additions & 2 deletions
2
src/main/java/kr/hs/dgsw/SOPO_server_v2/domain/contest/dto/ContestUpdateReq.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
Oops, something went wrong.