Skip to content

Commit

Permalink
feat: commit 누락
Browse files Browse the repository at this point in the history
  • Loading branch information
suw0n committed Apr 4, 2024
1 parent 985e3fc commit bf4daf0
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package b1nd.dodamcore.nightstudy.application.dto.req;

public record RejectNightStudyReq(String rejectReason) {}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public record NightStudyRes(Long id,
Boolean doNeedPhone, String reasonForPhone,
StudentRes student,
String place,
String rejectReason,
LocalDate startAt, LocalDate endAt,
LocalDateTime createdAt, LocalDateTime modifiedAt) {
public static List<NightStudyRes> of(List<NightStudy> nightStudies) {
Expand All @@ -30,6 +31,7 @@ public static NightStudyRes of(NightStudy nightStudy) {
nightStudy.getDoNeedPhone(), nightStudy.getReasonForPhone(),
StudentRes.of(nightStudy.getStudent()),
nightStudy.getPlace().getPlace(),
nightStudy.getRejectReason(),
nightStudy.getStartAt(), nightStudy.getEndAt(),
nightStudy.getCreatedAt(), nightStudy.getModifiedAt()
);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package b1nd.dodamcore.outgoing.application.dto.req;

public record RejectOutGoingReq(String rejectReason) {}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import java.util.List;

public record OutGoingRes(Long id, String reason, OutGoingStatus status, LocalDateTime startAt, LocalDateTime endAt,
StudentRes student, LocalDateTime createdAt, LocalDateTime modifiedAt) {
StudentRes student, String rejectReason, LocalDateTime createdAt, LocalDateTime modifiedAt) {
public static List<OutGoingRes> of(List<OutGoing> oList) {
return oList.stream()
.map(OutGoingRes::of)
Expand All @@ -23,6 +23,7 @@ public static OutGoingRes of(OutGoing o) {
o.getStartAt(),
o.getEndAt(),
StudentRes.of(o.getStudent()),
o.getRejectReason(),
o.getCreatedAt(),
o.getModifiedAt()
);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package b1nd.dodamcore.outsleeping.application.dto.req;

public record RejectOutSleepingReq(String rejectReason) {}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public record OutSleepingRes(
LocalDate startAt,
LocalDate endAt,
StudentRes student,
String rejectReason,
LocalDateTime createdAt,
LocalDateTime modifiedAt) {
public static List<OutSleepingRes> of(List<OutSleeping> outSleepings) {
Expand All @@ -31,6 +32,7 @@ public static OutSleepingRes of(OutSleeping outSleeping) {
outSleeping.getStartAt(),
outSleeping.getEndAt(),
StudentRes.of(outSleeping.getStudent()),
outSleeping.getRejectReason(),
outSleeping.getCreatedAt(),
outSleeping.getModifiedAt()
);
Expand Down

0 comments on commit bf4daf0

Please sign in to comment.