package com.izouma.jmrh.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.izouma.jmrh.enums.OrgStatus;
import com.izouma.jmrh.enums.PostType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@JsonInclude(JsonInclude.Include.NON_NULL)
public class PostDTO {

    private Long id;

    private Long userId;

    private String title;

    private String content;

    private List<String> pics;

    private PostType type;

    private int commentNum;

    private int viewNum;

    private int likeNum;

    private int dislikeNum;

    private OrgStatus status;

    private LocalDateTime createdAt;

    private String nickname;

    private String avatar;

    private String reply;

    private CommentDTO comment;

    private boolean liked;

    private boolean disliked;

}
