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;

/**
 * GNSS收发统计消息，每个工作周期结束的时候统计一次
 *
 * @author LiGang
 */
@Data
@TableName(value = "devicecmd")
public class DeviceCmd {
    // device type definition
    public static final short TYPE_GNSS = 0;
    public static final short TYPE_DTU = 1;
    public static final short TYPE_MPU = 2;
    public static final short TYPE_DEBUG = 3;

    public static final short MAX_CMD_LEN = 800;

    @TableId(value = "id", type = IdType.AUTO)
    Long id;
    String name;
    Short type;
    String content;
}
