package com.fuyuanshen.equipment.domain.bo;

import cn.idev.excel.annotation.ExcelProperty;
import com.fuyuanshen.common.core.validate.AddGroup;
import com.fuyuanshen.common.core.validate.EditGroup;
import com.fuyuanshen.common.mybatis.core.domain.BaseEntity;
import com.fuyuanshen.equipment.domain.DeviceFenceAccessRecord;
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_access_record
 *
 * @author Lion Li
 * @date 2025-09-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = DeviceFenceAccessRecord.class, reverseConvertGenerate = false)
public class DeviceFenceAccessRecordBo extends BaseEntity {

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

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

    /**
     * 围栏名称
     */
    private String fenceName;

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

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 事件类型
     */
    @NotNull(message = "事件类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long eventType;

    /**
     * 纬度
     */
    @NotNull(message = "纬度不能为空", groups = {AddGroup.class, EditGroup.class})
    private Double latitude;

    /**
     * 经度
     */
    @NotNull(message = "经度不能为空", groups = {AddGroup.class, EditGroup.class})
    private Double longitude;

    /**
     * 定位精度
     */
    private Long accuracy;

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

    /**
     * 事件地址
     */
    private String eventAddress;

    /**
     * 开始时间
     */
    private String beginTime;

    /**
     * 结束时间
     */
    private String endTime;

    /**
     * 记录创建时间
     */
    private Date createTime;


}
