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

import com.eactive.apim.portal.file.entity.FileInfo;
import com.eactive.eai.data.converter.LocalDateTimeFormatters;
import com.eactive.eai.rms.onl.apim.portaluser.PortalUserUI;
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;
import java.util.List;


@Data
public class PortalInquiryUI {

	private String id;

	private String inquirySubject;

	private String inquiryDetail;

	private String inquiryStatus;

	private PortalUserUI inquirer;

	private String responseDetail;

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

	private String responderId;

	private String responderName;

	/* file */
	private List<MultipartFile> files;

	private FileInfo fileInfo;

	private String attachFile;

	private boolean hasAttachment;

	private String fileName;

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

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

	private String orgName;

	private int commentCount;

	/** 공개범위(ALL/ORG/PRIVATE). */
	private String visibility;

	/** 조회수. */
	private long viewCount;
}
