1 package usecase.post;
2
3 import lombok.Builder;
4 import lombok.Data;
5
6 import java.time.Instant;
7
8 /**
9 * Classe DTO relativa al post.
10 */
11 @Data @Builder
12 public class PostPage {
13 private int id;
14 private String title;
15 private int vote;
16 private int votes;
17 private String sectionName;
18 private String authorName;
19 private Integer sectionId;
20 private Integer authorId;
21 private Instant creationDate;
22 private String content;
23 private int nComments;
24 private PostType type;
25 }