package com.fuyuanshen.equipment.domain.bo;

import com.fuyuanshen.common.core.validate.AddGroup;
import com.fuyuanshen.common.core.validate.EditGroup;
import com.fuyuanshen.equipment.domain.DeviceFenceStatus;
import com.fuyuanshen.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 设备进入围栏状态业务对象 device_fence_status
 *
 * @author Lion Li
 * @date 2025-09-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = DeviceFenceStatus.class, reverseConvertGenerate = false)
public class DeviceFenceStatusBo extends BaseEntity {

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

    /**
     * 设备ID
     */
    @NotBlank(message = "设备ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deviceId;

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

    /**
     * 状态: 0-在围栏外, 1-在围栏内
     */
    @NotNull(message = "状态: 0-在围栏外, 1-在围栏内不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long status;

    /**
     * 上次检查时间
     */
    @NotNull(message = "上次检查时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date lastCheckTime;


}
