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

import com.hotwj.platform.resourceManagement.vehicleContract.domain.HotVehicleContract;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.util.Date;

/**
 * 车辆合同业务对象 hot_vehicle_contract
 *
 * @author shihongwei
 * @date 2025-12-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotVehicleContract.class, reverseConvertGenerate = false)
public class HotVehicleContractBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private String id;

    /**
     * 公司ID
     */
    @NotNull(message = "公司ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long companyId;

    /**
     * 车辆ID
     */
    private String vehicleId;

    /**
     * 合同名称
     */
    @NotBlank(message = "合同名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String contractTitle;

    /**
     * 车主姓名
     */
    private String ownerName;

    /**
     * 联系方式
     */
    private String contactPhone;

    /**
     * 签约时间
     */
    @NotNull(message = "签约时间不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date signDate;

    /**
     * 到期时间
     */
    @NotNull(message = "到期时间不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date expireDate;

    /**
     * 合同图片URL(多个逗号分隔)
     */
    private String contractImageUrls;

    /**
     * 文档附件URL(docx)
     */
    private String docAttachmentUrl;

    /**
     * 0=正常, 1=已删除
     */
//    @NotNull(message = "0=正常, 1=已删除不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long isDeleted;


}
