package com.inspect.img.domain;

import com.inspect.base.core.annotation.Excel;
import com.inspect.base.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

@Setter
@Getter
public class InspectionReportImg extends BaseEntity {
    private static final long serialVersionUID = 1L;
    private Long lineId;
    @Excel(
            name = "巡视报告从表id"
    )
    private String reportInfoId;
    @Excel(
            name = "缩略图"
    )
    private String img;
    @Excel(
            name = "缩略图路径"
    )
    private String imgSrc;
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @Excel(
            name = "创建时间",
            width = 30.0D,
            dateFormat = "yyyy-MM-dd"
    )
    private Date creatTime;
    @Excel(
            name = "0-图片  1-图片路径"
    )
    private String imgType;

    @Override
    public String toString() {
        return "InspectionReportImg{" +
                "lineId=" + lineId +
                ", reportInfoId='" + reportInfoId + '\'' +
                ", img='" + img + '\'' +
                ", imgSrc='" + imgSrc + '\'' +
                ", creatTime=" + creatTime +
                ", imgType='" + imgType + '\'' +
                '}';
    }
}
