package com.fuyuanshen.equipment.domain.bo;

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.DeviceGeoFence;
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_geo_fence
 *
 * @author Lion Li
 * @date 2025-09-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = DeviceGeoFence.class, reverseConvertGenerate = false)
public class DeviceGeoFenceBo extends BaseEntity {

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

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

    /**
     * 围栏描述
     */
    private String description;

    /**
     * 围栏区域类型,  0 POLYGON, 1 CIRCLE
     */
    @NotNull(message = "围栏区域类型,  0 POLYGON, 1 CIRCLE不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long areaType;

    /**
     * 围栏坐标数据
     */
    @NotBlank(message = "围栏坐标数据不能为空", groups = { AddGroup.class, EditGroup.class })
    private String coordinates;

    /**
     * 圆形围栏半径(米)
     */
    private Long radius;

    /**
     * 是否激活
     */
    private Long isActive;

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

    /**
     * 更新时间
     */
    private Date updateTime;
    /**
     * 高德服务ID
     */
    private Long sid;
    /**
     * 高德围栏ID
     */
    private Long gfid;


}
