-
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.
chore: 실행 목표 조회 로직 변경, 리뷰 사항 반영 (#139)
* chore: 실행 목표가 없는 회고 응답에서 제외 * chore: dto 이름 변경 * chore: 새로운 폼 저장 title ->formName으로 변경
- Loading branch information
Showing
13 changed files
with
110 additions
and
126 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
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
51 changes: 0 additions & 51 deletions
51
...main/java/org/layer/domain/actionItem/controller/dto/MemberActionItemElementResponse.java
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
...src/main/java/org/layer/domain/actionItem/controller/dto/MemberActionItemGetResponse.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package org.layer.domain.actionItem.controller.dto; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
|
||
import java.util.List; | ||
|
||
public record MemberActionItemGetResponse(@NotNull List<MemberActionItemResponse> actionItems) { | ||
} |
29 changes: 28 additions & 1 deletion
29
...pi/src/main/java/org/layer/domain/actionItem/controller/dto/MemberActionItemResponse.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,9 +1,36 @@ | ||
package org.layer.domain.actionItem.controller.dto; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.validation.constraints.NotNull; | ||
import lombok.Builder; | ||
import org.layer.domain.retrospect.entity.Retrospect; | ||
import org.layer.domain.space.entity.Space; | ||
|
||
import java.util.List; | ||
|
||
@Builder | ||
public record MemberActionItemResponse(List<MemberActionItemElementResponse> actionItemResponse) { | ||
public record MemberActionItemResponse(@NotNull | ||
@Schema(description = "회고 ID", example = "1") | ||
Long retrospectId, | ||
@NotNull | ||
@Schema(description = "회고 제목", example = "중간 발표 이후 회고") | ||
String retrospectTitle, | ||
@NotNull | ||
@Schema(description = "회고가 속한 스페이스 ID", example = "1") | ||
Long spaceId, | ||
@NotNull | ||
@Schema(description = "회고가 속한 스페이스 이름", example = "떡잎방범대") | ||
String spaceName, | ||
@NotNull | ||
@Schema(description = "액션 아이템 아이디와 내용 리스트") | ||
List<ActionItemResponse> actionItemList) { | ||
public static MemberActionItemResponse of(Space space, Retrospect retrospect, List<ActionItemResponse> actionItemList) { | ||
return MemberActionItemResponse.builder() | ||
.retrospectId(retrospect.getId()) | ||
.retrospectTitle(retrospect.getTitle()) | ||
.spaceId(space.getId()) | ||
.spaceName(space.getName()) | ||
.actionItemList(actionItemList) | ||
.build(); | ||
} | ||
} |
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.