From c39bd394c624d23fbb1dea688cf2db297806a075 Mon Sep 17 00:00:00 2001 From: ddingmin Date: Sun, 16 Jun 2024 12:26:56 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20Notification=20response=20swagger?= =?UTF-8?q?=20example=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../restapi/dto/response/NotificationResponse.kt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/com/depromeet/makers/presentation/restapi/dto/response/NotificationResponse.kt b/src/main/kotlin/com/depromeet/makers/presentation/restapi/dto/response/NotificationResponse.kt index 42b5536..1cde610 100644 --- a/src/main/kotlin/com/depromeet/makers/presentation/restapi/dto/response/NotificationResponse.kt +++ b/src/main/kotlin/com/depromeet/makers/presentation/restapi/dto/response/NotificationResponse.kt @@ -4,21 +4,22 @@ import com.depromeet.makers.domain.model.NotificationType import com.depromeet.makers.domain.usecase.GetRecentNotification import io.swagger.v3.oas.annotations.media.Schema +@Schema(description = "알림 DTO") data class NotificationResponse( - @Schema(description = "알림 ID") + @Schema(description = "알림 ID", example = "01HWPNRE5TS9S7VC99WPETE5KE") val id: String, - @Schema(description = "사용자 ID") + @Schema(description = "사용자 ID", example = "01HWPNRE5TS9S7VC99WPETE5KE") val memberId: String, - @Schema(description = "알림 내용") + @Schema(description = "알림 내용", example = "지난주에 결석하셨군요. 증빙이 필요하다면 증빙서류를 제출해주세요.") val content: String, - @Schema(description = "알림 타입", example = "MEETING") + @Schema(description = "알림 타입", example = "DOCUMENT") val type: NotificationType, - @Schema(description = "읽기 여부") + @Schema(description = "읽기 여부", example = "false") val isRead: Boolean, ) { companion object {