package com.bonus.material.device.domain;

import com.bonus.common.biz.domain.BmFileInfo;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @Author：liang.chao
 * @Date：2024/12/20 - 14:14
 */
@Data
public class Table {

    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "唯一标识符")
    private String identifyCode;

    @ApiModelProperty(value = "检测人")
    private String checkMan;

    @ApiModelProperty(value = "检测日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date checkDate;

    @ApiModelProperty(value = "下次检测日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date nextCheckDate;

    @ApiModelProperty(value = "检测证明pdf")
    private List<BmFileInfo> examinationPdf = new ArrayList<>();

    @ApiModelProperty(value = "合格证pdf")
    private List<BmFileInfo> insurancePdf = new ArrayList<>();
}
