package com.njcn.gather.report.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author caozehui
 * @data 2025-03-19
 */
@Data
public class PqReportVO {
    /**
     * 报告模板id
     */
    private String id;

    /**
     * 报告模板名称
     */
    private String name;

    /**
     * 版本号
     */
    private String version;


    /**
     * 基础模板文件路径
     */
    private FileVO baseFileVO;

    /**
     * 检测项模版文件路径
     */
    private FileVO detailFileVO;

    /**
     * 描述信息
     */
    private String description;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime createTime;

    /**
     * 状态：0-删除 1-正常
     */
    //private Integer state;

    @Data
    public static class FileVO{
        private String name;

        private String url;
    }
}
