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

import com.hotwj.platform.resourceManagement.vehicleTerminalInstall.domain.HotVehicleTerminalInstall;
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_terminal_install
 *
 * @author shihongwei
 * @date 2025-12-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotVehicleTerminalInstall.class, reverseConvertGenerate = false)
public class HotVehicleTerminalInstallBo 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;

    /**
     * 车牌号
     */
    private String plateNumber;

    /**
     * 终端服务商
     */
    @NotBlank(message = "终端服务商不能为空", groups = {AddGroup.class, EditGroup.class})
    private String serviceProvider;

    /**
     * 单据编号
     */
    @NotBlank(message = "单据编号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String documentNo;

    /**
     * 记录人
     */
    @NotBlank(message = "记录人不能为空", groups = {AddGroup.class, EditGroup.class})
    private String recorder;

    /**
     * 安装日期
     */
    @NotNull(message = "安装日期不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date installDate;

    /**
     * 服务截止日期
     */
    @NotNull(message = "服务截止日期不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date serviceEndDate;

    /**
     * 入网登记表图片URL(多个逗号分隔)
     */
    private String registerImageUrls;

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


}
