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

import com.hotwj.platform.driverManagement.driverFileSign.domain.HotDriverFileSign;
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_driver_file_sign
 *
 * @author shihongwei
 * @date 2025-12-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotDriverFileSign.class, reverseConvertGenerate = false)
public class HotDriverFileSignBo extends BaseEntity {

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

    /**
     * 驾驶员ID
     */
    @NotNull(message = "驾驶员ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private String driverId;

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

    /**
     * 签订文件图片url
     */
    @NotBlank(message = "签订文件图片url不能为空", groups = {AddGroup.class, EditGroup.class})
    private String signFileImgUrl;

    /**
     * 办理人员
     */
    @NotBlank(message = "办理人员不能为空", groups = {AddGroup.class, EditGroup.class})
    private String handlerName;

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

    /**
     * 到期时间
     */
    private Date expireTime;

    /**
     * 是否归档 0=否 1=是
     */
    @NotNull(message = "是否归档 0=否 1=是不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long isArchived;

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

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


}
