Skip to content

Commit

Permalink
refactor: Notification response swagger example 추가 (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddingmin authored Jun 16, 2024
1 parent 2f5b9a4 commit 32151e0
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 32151e0

Please sign in to comment.