-
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.
Merge pull request #78 from KNU-HAEDAL-Website/feat-get-activity-post…
…-issue-75 Feat: 게시글 조회 API
- Loading branch information
Showing
10 changed files
with
277 additions
and
13 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
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
25 changes: 25 additions & 0 deletions
25
src/main/java/com/haedal/haedalweb/dto/response/PostSliderDTO.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.haedal.haedalweb.dto.response; | ||
|
||
import java.net.URL; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.AccessLevel; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
|
||
@Getter | ||
@AllArgsConstructor | ||
@Builder | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
public class PostSliderDTO { | ||
@Schema(description = "게시글 id") | ||
private Long postId; | ||
|
||
@Schema(description = "게시글 제목") | ||
private String postTitle; | ||
|
||
@Schema(description = "게시글 대표 이미지 파일 Url") | ||
private URL postImageUrl; | ||
} |
53 changes: 53 additions & 0 deletions
53
src/main/java/com/haedal/haedalweb/dto/response/PostSummaryDTO.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,53 @@ | ||
package com.haedal.haedalweb.dto.response; | ||
|
||
import java.net.URL; | ||
import java.time.LocalDate; | ||
import java.time.LocalDateTime; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.AccessLevel; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
|
||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@Getter | ||
@AllArgsConstructor | ||
@Builder | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
public class PostSummaryDTO { | ||
@Schema(description = "게시글 id") | ||
private Long postId; | ||
|
||
@Schema(description = "게시글 제목") | ||
private String postTitle; | ||
|
||
@Schema(description = "게시글 대표 이미지 파일 Url") | ||
private URL postImageUrl; | ||
|
||
@Schema(description = "게시글 조회수") | ||
private Long postViews; | ||
|
||
@Schema(description = "활동 시작일") | ||
private LocalDate postActivityStartDate; | ||
|
||
@Schema(description = "활동 종료일") | ||
private LocalDate postActivityEndDate; | ||
|
||
@Schema(description = "게시글 생성일") | ||
private LocalDateTime postCreateDate; | ||
|
||
@Schema(description = "유저 아이디", example = "haedal12") | ||
private String userId; | ||
|
||
@Schema(description = "유저 이름", example = "조대성") | ||
private String userName; | ||
|
||
@Schema(description = "게시판 id") | ||
private Long boardId; | ||
|
||
@Schema(description = "게시판 이름") | ||
private String boardName; | ||
} |
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
Oops, something went wrong.