-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(MeetingController): 약속 입장 정보 조회 컨트롤러 추가 * style(MeetingHomeResponse): 약속 입장 조회 레코드명 수정 * refactor: 불명확한 `@DisplayName` 수정 * refactor: 불명확한 메서드명 수정 * feat: Controller Swagger 문서화 추가
- Loading branch information
Showing
6 changed files
with
81 additions
and
0 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
18 changes: 18 additions & 0 deletions
18
backend/src/main/java/kr/momo/service/meeting/dto/MeetingHomeResponse.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,18 @@ | ||
package kr.momo.service.meeting.dto; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import kr.momo.domain.meeting.Meeting; | ||
|
||
@Schema(description = "약속 입장 응답") | ||
public record MeetingHomeResponse( | ||
|
||
@Schema(description = "약속 이름") | ||
String meetingName, | ||
|
||
@Schema(description = "약속 유형") | ||
String type | ||
) { | ||
public static MeetingHomeResponse from(Meeting meeting) { | ||
return new MeetingHomeResponse(meeting.getName(), meeting.getType().name()); | ||
} | ||
} |
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