package com.bonus.common.entity.bracelet.vo;

import lombok.Data;

/**
 * @className:PersonControlVo
 * @author:cwchen
 * @date:2024-08-23-10:48
 * @version:1.0
 * @description:人员管控
 */
@Data
public class PersonControlVo {

    /**杆塔信息*/
    @Data
    public static class TowerInfo {
        /**杆塔ID*/
        private Long id;
        /**杆塔名称*/
        private String powerName;
        /**经度*/
        private String lon;
        /**纬度*/
        private String lat;
        /**施工半径*/
        private Double distance = 0D;
    }

    /**施工人员*/
    @Data
    public static class WorkPersonInfo {
        /**人员id*/
        private Long id;
        /**姓名*/
        private String name;
        /**手机号*/
        private String phone;
        /**手环id*/
        private Long devId;
        /**0 班组人员 1 临时人员*/
        private Integer type;
        /**经度*/
        private String lon;
        /**纬度*/
        private String lat;
        /**是否告警 0 未告警 1.告警*/
        private Integer isWarn = 0;
    }

    /**手环信息*/
    @Data
    public static class BraceletInfo {
        /**手环属性ID*/
        private Long id;
        /**设备属性名称*/
        private String dataName;
        /**设备采集值*/
        private String dataVal;
        /**设备值单位*/
        private String dataUnit;
        /**级联编码*/
        private String dataCode;
        /**数据采集时间*/
        private String dataTime;
    }
}
