package com.eactive.eai.rms.onl.apim.portalnotice;

import com.eactive.apim.portal.file.entity.FileInfo;
import com.eactive.eai.data.converter.LocalDateTimeFormatters;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.multipart.MultipartFile;

import java.time.LocalDateTime;


@Data
public class PortalNoticeUI {

	private String id;

	private String noticeSubject;

	private String noticeDetail;

	private String fileId;

	private String fileName;

	private MultipartFile files;

	private FileInfo fileInfo;

	private Long readCount;

	private String useYn;

	private String inquirerName;

	private String createdBy;

	@JsonFormat(pattern = LocalDateTimeFormatters.FORMAT_YYYYMMDDHHMMSS_14)
	@DateTimeFormat(pattern = "yyyyMMddHHmmss")
	private LocalDateTime createdDate;

	private String lastModifiedBy;

	@JsonFormat(pattern = LocalDateTimeFormatters.FORMAT_YYYYMMDDHHMMSS_14)
	@DateTimeFormat(pattern = "yyyyMMddHHmmss")
	private LocalDateTime lastModifiedDate;

	private boolean hasAttachment;	// 첨부파일 여부

	private boolean fileDeleted; // 파일 삭제 여부
}
