package com.maintain.business.domain.bo;

import com.maintain.common.core.validate.AddGroup;
import com.maintain.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.maintain.common.core.domain.BaseEntity;

/**
 * 客户信息-车辆业务对象 erp_car
 *
 * @author liushuai
 * @date 2025-03-25
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpCarBo extends BaseEntity {

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

    /**
     * 车牌号
     */
    @NotBlank(message = "车牌号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String plateNumber;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 客户ID
     */
    private Long clientId;

    /**
     * 客户名称
     */
    private String clientName;

    /**
     * 客户类型
     */
     private Integer clientType;

    /**
     * 车架号
     */
    @NotBlank(message = "车架号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String carVin;

    /**
     * 驾驶证图片（逗号分割）
     */
    private String drivingLicenseUrl;

    /**
     * 车辆图片（逗号分割）
     */
    private String carImgUrl;

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

    /**
     * 创建时间
     */
    private Date  createTime;


}
