package com.ruoyi.bst.driver.domain;

import java.time.LocalDateTime;

import javax.validation.constraints.NotBlank;

import org.springframework.format.annotation.DateTimeFormat;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 驾驶证认证对象 bst_driver
 *
 * @author ruoyi
 * @date 2025-06-03
 */
@Data
public class Driver extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Long id;

    @Excel(name = "用户ID")
    @ApiModelProperty("用户ID")
    private Long userId;

    @Excel(name = "驾驶证号")
    @ApiModelProperty("驾驶证号")
    private String no;

    @Excel(name = "姓名")
    @ApiModelProperty("姓名")
    private String name;

    @Excel(name = "正面照片")
    @ApiModelProperty("正面照片")
    @NotBlank(message = "正面照片不能为空")
    private String pictureFront;

    @Excel(name = "背面照片")
    @ApiModelProperty("背面照片")
    @NotBlank(message = "背面照片不能为空")
    private String pictureBack;

    @Excel(name = "状态", readConverterExp = "1=待认证,2=认证通过,3=认证失败")
    @ApiModelProperty("状态")
    private String status;

    @Excel(name = "审核人ID")
    @ApiModelProperty("审核人ID")
    private Long verifyId;

    @Excel(name = "审核备注")
    @ApiModelProperty("审核备注")
    private String verifyRemark;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("审核时间")
    private LocalDateTime verifyTime;

}
