package com.imdroid.secapi.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * GNSS设备配置数据
 *
 * @author LiGang
 */
@Data
@TableName(value = "gnssdevices")
public class GnssDevice {
    public static final short TYPE_ROVER = 0;
    public static final short TYPE_REFERENCE_STATION = 1;

    public static final short OP_MODE_USE = 0;
    public static final short OP_MODE_CHECK = 1;
    public static final short OP_MODE_UNUSE = 2;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Integer tenantid;
    private Short opmode;
    private LocalDateTime createtime;
    private String createuser;
    private LocalDateTime updatetime;
    private String updateuser;
    private String deviceid;
    private String fwddeviceid; //推送的设备名
    private String name;
    private String parentid;
    private Integer devicetype;
    private String tenantname;
    private String project_id;
    private String project2_id;
    private Integer group_id = 1;   //组参数，缓存自动下发
    private Integer calc_group_id = 1;
    private String fwd_group_id;
    private String fwd_group_id2;
    private Boolean syn;    //组参数是否同步
    private String pictures;
    private Double ipose; //初始位置
    private Double iposn; //初始位置
    private Double iposd; //初始位置

    public String getObjectName(){
        return "gnssdevice";
    }
}
