package com.casic.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Builder; import lombok.Data; import java.util.Date; @Data @Builder @ApiModel(value = "nbConfig", description = "设备配置") @TableName("nb_config") public class NbConfig{ @ApiModelProperty(notes = "主键", dataType = "String") @TableId(type = IdType.AUTO) private String id; @ApiModelProperty(notes = "上传周期", dataType = "String") private String upload; @ApiModelProperty(notes = "收集周期", dataType = "String") private String collect; @ApiModelProperty(notes = "重传次数", dataType = "String") private String retry; @ApiModelProperty(notes = "设备状态", dataType = "String") private String status; @ApiModelProperty(notes = "设备编号", dataType = "String") private String devcode; @ApiModelProperty(notes = "NB平台主键", dataType = "String") private String deviceId; @ApiModelProperty(notes = "记录时间", dataType = "Date") @JsonFormat(shape =JsonFormat.Shape.STRING,pattern ="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8") private Date logtime; }