-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚑 hotfix: hotfix announcement list response (#485)
- Loading branch information
1 parent
23be312
commit 003e1b9
Showing
3 changed files
with
34 additions
and
9 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
...ain/java/com/depromeet/domains/announcement/dto/response/AnnouncementListResponseDto.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,25 @@ | ||
package com.depromeet.domains.announcement.dto.response; | ||
|
||
import com.depromeet.announcement.Announcement; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
public record AnnouncementListResponseDto( | ||
@Schema(description = "공지사항 아이디", example = "1") | ||
Long announcementId, | ||
|
||
@Schema(description = "공지사항 제목", example = "사용성 개선") | ||
String title, | ||
|
||
@Schema(description = "생성시간", example = "yyyy-MM-dd HH:mm:ss") | ||
LocalDateTime createdAt | ||
) { | ||
public AnnouncementListResponseDto(Announcement announcement) { | ||
this( | ||
announcement.getId(), | ||
announcement.getTitle(), | ||
announcement.getCreatedAt() | ||
); | ||
} | ||
} |
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