package com.hotwj.platform.driverManagement.driverProfCert.domain.bo;

import com.hotwj.platform.driverManagement.driverProfCert.domain.HotDriverProfCert;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.util.Date;

/**
 * 从业资格证业务对象 hot_driver_prof_cert
 *
 * @author shihongwei
 * @date 2025-12-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotDriverProfCert.class, reverseConvertGenerate = false)
public class HotDriverProfCertBo extends BaseEntity {

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

    /**
     * 公司ID
     */
    private Long companyId;

    /**
     * 驾驶员ID
     */
    private Long driverId;

    /**
     * 从业资格证类别
     */
    private String category;

    /**
     * 资格证号
     */
    private String certNo;

    /**
     * 初次领证日期
     */
    private Date firstIssueDate;

    /**
     * 有效起始日期
     */
    private Date validFrom;

    /**
     * 有效终止日期
     */
    private Date validTo;

    /**
     * 有效期描述
     */
    private String validityTerm;

    /**
     * 发证机关
     */
    private String issuingAuthority;

    /**
     * 从业资格证附件URL
     */
    private String attachmentUrl;

    /**
     * 状态：1=正常 0=禁用
     */
    private Long status;

    /**
     * 0=正常, 1=已删除
     */
    private Long isDeleted;


}
