package com.its.web.dto.notice;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.its.web.pagination.Pagination;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("NoticeDto(공지사항 DTO)")
public class NoticeDto {
    @ApiModelProperty("공지사항 ID")
    @JsonProperty("board_id")
    private String boardId;

    @ApiModelProperty("공지사항 번호")
    @JsonProperty("board_no")
    private Long boardNo;

    @ApiModelProperty("카테고리 코드")
    @JsonProperty("category_cd")
    private String categoryCd;

    @ApiModelProperty("상위 공지사항 번호")
    @JsonProperty("parent_board_no")
    private Long parentBoardNo;

    @ApiModelProperty("등록 일자")
    @JsonProperty("reg_date")
    private String regDate;

    @ApiModelProperty("공지사항 제목")
    @JsonProperty("b_subject")
    private String bSubject;

    @ApiModelProperty("공지사항 내용")
    @JsonProperty("b_content")
    private String bContent;

    @ApiModelProperty("작성자")
    @JsonProperty("b_writer")
    private String bWriter;

    @ApiModelProperty("첨부파일")
    @JsonProperty("attach_file")
    private String attachFile;

    @ApiModelProperty("첨부파일 ID")
    @JsonProperty("attach_file_id")
    private String attachFileId;

    @ApiModelProperty("공지사항")
    @JsonProperty("b_notice")
    private String bNotice;

    @ApiModelProperty("조회수")
    @JsonProperty("read_count")
    private Integer readCount;

    @ApiModelProperty("비고")
    @JsonProperty("remark")
    private String remark;

    @ApiModelProperty("페이지 정보")
    @JsonProperty("page")
    private Pagination page;

}
