Skip to content

Commit

Permalink
feat: 매개변수 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
youngsu5582 committed Dec 7, 2024
1 parent 0f660b8 commit f246d32
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion backend/src/main/java/corea/room/dto/RefactorRoomResponse.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package corea.room.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import corea.member.domain.MemberRole;
import corea.participation.domain.Participation;
import corea.participation.domain.ParticipationStatus;
Expand Down Expand Up @@ -46,6 +45,14 @@ public record RoomInfoResponse(
@NotNull
int limitedParticipants,

@Schema(description = "리뷰어 참여 수", example = "10")
@NotNull
int reviewerCount,

@Schema(description = "일반 참여 수", example = "123")
@NotNull
int bothCount,

@Schema(description = "방장 이름", example = "최진실")
String manager,

Expand All @@ -64,6 +71,8 @@ public static RoomInfoResponse from(Room room) {
room.getMatchingSize(),
room.getKeyword(),
room.getLimitedParticipantsSize(),
room.getReviewerCount(),
room.getBothCount(),
room.getManagerName(),
room.getRoomStatus(),
""
Expand Down

0 comments on commit f246d32

Please sign in to comment.