Skip to content

Commit

Permalink
feat: planner ์‘๋‹ต
Browse files Browse the repository at this point in the history
  • Loading branch information
SangWoon123 committed Sep 1, 2024
1 parent aa89fe0 commit 08521ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public record PlannerUpdateRequest(
String content,
PlannerStatus status,
LocalDateTime deadline,
String manager,
String managerCode,
List<String> userCodes,
Long scheduleId
) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package com.tukorea.planding.domain.planner.dto.group;

import com.tukorea.planding.domain.group.entity.GroupRoom;
import com.tukorea.planding.domain.notify.entity.NotificationType;
import com.tukorea.planding.domain.planner.PlannerStatus;
import com.tukorea.planding.domain.planner.dto.GroupPlannerResponse;
import com.tukorea.planding.domain.planner.dto.PlannerResponse;
import com.tukorea.planding.domain.planner.entity.Planner;
import com.tukorea.planding.domain.schedule.entity.Action;
import com.tukorea.planding.domain.schedule.entity.ScheduleType;
import lombok.Builder;

import java.time.LocalDate;
Expand All @@ -14,15 +16,15 @@

@Builder
public record PlannerWeekResponse(
PlannerResponse planner,
List<PlannerResponse> planners,
Long scheduleId,
String scheduleTitle,
LocalDate scheduleDate,
NotificationType type
) {
public static PlannerWeekResponse fromEntity(Planner planner) {
return PlannerWeekResponse.builder()
.planner(PlannerResponse.fromEntity(planner))
.planners(List.of(PlannerResponse.fromEntity(planner)))
.scheduleDate(planner.getSchedule().getScheduleDate())
.scheduleTitle(planner.getSchedule().getTitle())
.scheduleId(planner.getSchedule().getId())
Expand Down

0 comments on commit 08521ee

Please sign in to comment.