Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Notification response swagger example 추가 #102

Merged
merged 1 commit into from
Jun 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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