package com.hotwj.platform.resourceManagement.vehicleContract.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hotwj.platform.resourceManagement.vehicleContract.domain.HotVehicleContract;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 车辆合同视图对象 hot_vehicle_contract
 *
 * @author shihongwei
 * @date 2025-12-15
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = HotVehicleContract.class)
public class HotVehicleContractVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private String id;

    /**
     * 公司ID
     */
    @ExcelProperty(value = "公司ID")
    private Long companyId;

    /**
     * 车辆ID
     */
    @ExcelProperty(value = "车辆ID")
    private String vehicleId;

    /**
     * 合同名称
     */
    @ExcelProperty(value = "合同名称")
    private String contractTitle;

    /**
     * 车主姓名
     */
    @ExcelProperty(value = "车主姓名")
    private String ownerName;

    /**
     * 联系方式
     */
    @ExcelProperty(value = "联系方式")
    private String contactPhone;

    /**
     * 签约时间
     */
    @ExcelProperty(value = "签约时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date signDate;

    /**
     * 到期时间
     */
    @ExcelProperty(value = "到期时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date expireDate;

    /**
     * 合同图片URL(多个逗号分隔)
     */
    @ExcelProperty(value = "合同图片URL(多个逗号分隔)")
    private String contractImageUrls;

    /**
     * 合同图片URL(多个逗号分隔)Url
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "contractImageUrls")
    private String contractImageUrlsUrl;
    /**
     * 文档附件URL(docx)
     */
    @ExcelProperty(value = "文档附件URL(docx)")
    private String docAttachmentUrl;

    /**
     * 0=正常, 1=已删除
     */
    @ExcelProperty(value = "0=正常, 1=已删除")
    private Long isDeleted;


}
