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

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 java.time.LocalDateTime;


@Data
public class PortalPartnershipUI {

	private String id;

	/*비즈니스제목*/
	private String bizSubject;

	/*비즈니스내용*/
	private String bizDetail;

	/*첨부파일ID*/
	private String fileId;
	private FileInfo fileInfo;
	private boolean hasAttachment;

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

	private String createdByName;
	private String createdById;

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

	private String searchBizSubject;
	private String searchBizDetail;

}
