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

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 PortalTermsUI {

	/*Id 약관 유형*/
	private String agreementsType;

	/*Id*/
	private int revision;

	private String name;

	private String contents;

	private String status;

	/* 약관코드: terms_type + terms_version*/
	private String termCode;

	/* 발행일시 */
	@JsonFormat(pattern = LocalDateTimeFormatters.FORMAT_YYYYMMDDHHMMSS_14)
	@DateTimeFormat(pattern = "yyyyMMddHHmmss")
	private LocalDateTime publishedOn;

	/* 시행일시 */
	@JsonFormat(pattern = LocalDateTimeFormatters.FORMAT_YYYYMMDDHHMMSS_14)
	@DateTimeFormat(pattern = "yyyyMMddHHmmss")
	private LocalDateTime scheduledOn;

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

	private String createdBy;
	private String createdByName;

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

	private String lastModifiedBy;
	private String lastModifiedByName;

	private String searchAgreementsType;

	/* 첨부파일 ID */
	private String attachedFileId;

	/* 첨부파일명 (조회용) */
	private String attachedFileName;

	/* 첨부파일 크기 (조회용) */
	private Long attachedFileSize;

}
