diff --git a/dodam-core/src/main/java/b1nd/dodamcore/nightstudy/application/dto/req/RejectNightStudyReq.java b/dodam-core/src/main/java/b1nd/dodamcore/nightstudy/application/dto/req/RejectNightStudyReq.java new file mode 100644 index 00000000..a3ccc5a4 --- /dev/null +++ b/dodam-core/src/main/java/b1nd/dodamcore/nightstudy/application/dto/req/RejectNightStudyReq.java @@ -0,0 +1,3 @@ +package b1nd.dodamcore.nightstudy.application.dto.req; + +public record RejectNightStudyReq(String rejectReason) {} \ No newline at end of file diff --git a/dodam-core/src/main/java/b1nd/dodamcore/nightstudy/application/dto/res/NightStudyRes.java b/dodam-core/src/main/java/b1nd/dodamcore/nightstudy/application/dto/res/NightStudyRes.java index fb8c5c6c..1ba9da03 100644 --- a/dodam-core/src/main/java/b1nd/dodamcore/nightstudy/application/dto/res/NightStudyRes.java +++ b/dodam-core/src/main/java/b1nd/dodamcore/nightstudy/application/dto/res/NightStudyRes.java @@ -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 of(List nightStudies) { @@ -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() ); diff --git a/dodam-core/src/main/java/b1nd/dodamcore/outgoing/application/dto/req/RejectOutGoingReq.java b/dodam-core/src/main/java/b1nd/dodamcore/outgoing/application/dto/req/RejectOutGoingReq.java new file mode 100644 index 00000000..97eb0798 --- /dev/null +++ b/dodam-core/src/main/java/b1nd/dodamcore/outgoing/application/dto/req/RejectOutGoingReq.java @@ -0,0 +1,3 @@ +package b1nd.dodamcore.outgoing.application.dto.req; + +public record RejectOutGoingReq(String rejectReason) {} \ No newline at end of file diff --git a/dodam-core/src/main/java/b1nd/dodamcore/outgoing/application/dto/res/OutGoingRes.java b/dodam-core/src/main/java/b1nd/dodamcore/outgoing/application/dto/res/OutGoingRes.java index 113a052a..5ca70415 100644 --- a/dodam-core/src/main/java/b1nd/dodamcore/outgoing/application/dto/res/OutGoingRes.java +++ b/dodam-core/src/main/java/b1nd/dodamcore/outgoing/application/dto/res/OutGoingRes.java @@ -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 of(List oList) { return oList.stream() .map(OutGoingRes::of) @@ -23,6 +23,7 @@ public static OutGoingRes of(OutGoing o) { o.getStartAt(), o.getEndAt(), StudentRes.of(o.getStudent()), + o.getRejectReason(), o.getCreatedAt(), o.getModifiedAt() ); diff --git a/dodam-core/src/main/java/b1nd/dodamcore/outsleeping/application/dto/req/RejectOutSleepingReq.java b/dodam-core/src/main/java/b1nd/dodamcore/outsleeping/application/dto/req/RejectOutSleepingReq.java new file mode 100644 index 00000000..36ec78bc --- /dev/null +++ b/dodam-core/src/main/java/b1nd/dodamcore/outsleeping/application/dto/req/RejectOutSleepingReq.java @@ -0,0 +1,3 @@ +package b1nd.dodamcore.outsleeping.application.dto.req; + +public record RejectOutSleepingReq(String rejectReason) {} \ No newline at end of file diff --git a/dodam-core/src/main/java/b1nd/dodamcore/outsleeping/application/dto/res/OutSleepingRes.java b/dodam-core/src/main/java/b1nd/dodamcore/outsleeping/application/dto/res/OutSleepingRes.java index 58c2e18e..ee579845 100644 --- a/dodam-core/src/main/java/b1nd/dodamcore/outsleeping/application/dto/res/OutSleepingRes.java +++ b/dodam-core/src/main/java/b1nd/dodamcore/outsleeping/application/dto/res/OutSleepingRes.java @@ -15,6 +15,7 @@ public record OutSleepingRes( LocalDate startAt, LocalDate endAt, StudentRes student, + String rejectReason, LocalDateTime createdAt, LocalDateTime modifiedAt) { public static List of(List outSleepings) { @@ -31,6 +32,7 @@ public static OutSleepingRes of(OutSleeping outSleeping) { outSleeping.getStartAt(), outSleeping.getEndAt(), StudentRes.of(outSleeping.getStudent()), + outSleeping.getRejectReason(), outSleeping.getCreatedAt(), outSleeping.getModifiedAt() );