Skip to content

Commit cb33ed0

Browse files
committed
🔧 chore: StepResponse에 isPaused 값 추가
1 parent 371bc04 commit cb33ed0

2 files changed

Lines changed: 32 additions & 15 deletions

File tree

src/main/java/com/_oormthon/seasonthon/domain/step/dto/res/StepResponse.java

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,32 @@
1111
@Schema(description = "Step 정보 응답")
1212
public record StepResponse(
1313

14-
@Schema(description = "Step Id", example = "0") Long stepId,
14+
@Schema(description = "Step Id", example = "0")
15+
Long stepId,
1516

16-
@Schema(description = "날짜", example = "2025-09-02") LocalDate stepDate,
17+
@Schema(description = "날짜", example = "2025-09-02")
18+
LocalDate stepDate,
1719

18-
@Schema(description = "요일", example = "MONDAY") Day day,
20+
@Schema(description = "요일", example = "MONDAY")
21+
Day day,
1922

20-
@Schema(description = "내용", example = "ToDo ERD 설계") String description,
23+
@Schema(description = "내용", example = "ToDo ERD 설계")
24+
String description,
2125

22-
@Schema(description = "완료 여부", example = "false") Boolean isCompleted,
26+
@Schema(description = "완료 여부", example = "false")
27+
Boolean isCompleted,
2328

24-
@Schema(description = "tips", example = "tips") List<String> tips
29+
@Schema(description = "일시정지 여부", example = "false")
30+
Boolean isPaused,
31+
32+
@Schema(description = "tips", example = "tips")
33+
List<String> tips
2534

2635
) {
2736

2837
public static StepResponse of(TodoStep todoStep) {
2938
return new StepResponse(
3039
todoStep.getId(), todoStep.getStepDate(), todoStep.getDay(),
31-
todoStep.getDescription(), todoStep.isCompleted(), todoStep.getTips());
40+
todoStep.getDescription(), todoStep.isCompleted(), todoStep.isPaused(), todoStep.getTips());
3241
}
3342
}

src/main/java/com/_oormthon/seasonthon/domain/todo/dto/res/TodoStepResponse.java

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,29 @@
1313
@Schema(description = "ToDo / Step 리스트 정보 응답")
1414
public record TodoStepResponse(
1515

16-
@Schema(description = "D-Day", example = "D-10") String dDay,
16+
@Schema(description = "D-Day", example = "D-10")
17+
String dDay,
1718

18-
@Schema(description = "제목", example = "우물밖개구리 프로젝트") String title,
19+
@Schema(description = "제목", example = "우물밖개구리 프로젝트")
20+
String title,
1921

20-
@Schema(description = "마감 요일 목록", example = "[\"MONDAY\", \"WEDNESDAY\", \"FRIDAY\"]") List<Day> expectedDays,
22+
@Schema(description = "마감 요일 목록", example = "[\"MONDAY\", \"WEDNESDAY\", \"FRIDAY\"]")
23+
List<Day> expectedDays,
2124

22-
@Schema(description = "시작일", example = "2025-09-05") LocalDate startDate,
25+
@Schema(description = "시작일", example = "2025-09-05")
26+
LocalDate startDate,
2327

24-
@Schema(description = "마감일", example = "2025-09-05") LocalDate endDate,
28+
@Schema(description = "마감일", example = "2025-09-05")
29+
LocalDate endDate,
2530

26-
@Schema(description = "진행률 문구", example = "개구리가 햇빛을 보기 시작했어요!") String progressText,
31+
@Schema(description = "진행률 문구", example = "개구리가 햇빛을 보기 시작했어요!")
32+
String progressText,
2733

28-
@Schema(description = "진행률", example = "50") Integer progress,
34+
@Schema(description = "진행률", example = "50")
35+
Integer progress,
2936

30-
@Schema(description = "Step 리스트") List<StepResponse> steps
37+
@Schema(description = "Step 리스트")
38+
List<StepResponse> steps
3139

3240
) {
3341
public static TodoStepResponse of(Todo todo, String progressText, List<StepResponse> stepResponses) {

0 commit comments

Comments
 (0)