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;

@Data
public class PqReportVO {
    private String id;

    private String name;

    private String version;

    private String pattern;

    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;

    @Data
    public static class FileVO {
        private String name;

        private String url;
    }

    @Data
    public static class OptionVO {
        private String id;

        private String name;

        private String version;

        private String displayName;
    }
}
