Skip to content

Commit

Permalink
Merge pull request #257 from Open-Eye-Im-Developer/develop
Browse files Browse the repository at this point in the history
[MERGE] develop을 main에 반영
  • Loading branch information
JIN-076 authored Mar 12, 2024
2 parents b51a522 + 047622b commit 97f8845
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public CursorPaginationResult<ProjectJoinRequestDetailAPIRes> getBySenderIdWithP

List<ProjectJoinRequestDetailAPIRes> result = entities.stream().map(
projectJoinRequest -> new ProjectJoinRequestDetailAPIRes(
projectJoinRequest.getId(),
projectJoinRequest.getProject().getId(),
projectJoinRequest.getProject().getCreator().getAvatarUrl(),
new MeetingInfoResponse(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,34 @@
@Getter
public class ProjectJoinRequestDetailAPIRes {

@Schema(description = "프로젝트 요청 ID", example = "10", implementation = Long.class)
@NotNull
private final Long id;

@Schema(description = "프로젝트 ID", example = "3", implementation = Long.class)
@NotNull
private final Long projectId;

@Schema(description = "프로젝트 생성자 아바타 URL", example = "https://avatars.githubusercontent.com/u/85854384?v=4")
private final String creatorAvatorUrl;

@Schema(description = "프로젝트 만남 장ㅔ")
@Schema(description = "프로젝트 만남 장소")
private final MeetingInfoResponse meetingInfo;

public ProjectJoinRequestDetailAPIRes(Long projectId, String creatorAvatorUrl,
MeetingInfoResponse meetingInfo
public ProjectJoinRequestDetailAPIRes(Long id, Long projectId,
String creatorAvatorUrl, MeetingInfoResponse meetingInfo
) {
this.id = id;
this.projectId = projectId;
this.creatorAvatorUrl = creatorAvatorUrl;
this.meetingInfo = meetingInfo;
}

public static ProjectJoinRequestDetailAPIRes from(Long projectId, String creatorAvatorUrl,
MeetingInfoResponse meetingInfo
public static ProjectJoinRequestDetailAPIRes from(Long id, Long projectId,
String creatorAvatorUrl, MeetingInfoResponse meetingInfo
) {
return new ProjectJoinRequestDetailAPIRes(projectId, creatorAvatorUrl, meetingInfo);
return new ProjectJoinRequestDetailAPIRes(
id, projectId, creatorAvatorUrl, meetingInfo);
}

}

0 comments on commit 97f8845

Please sign in to comment.