package com.tofly.scada.entity.vo;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/**
 * 指标配置
 * @TableName TF_INDEX_ALLOCATION
 */

@Data
@EqualsAndHashCode
public class NetCumulativeFlow implements Serializable {

    @ApiModelProperty(value = "设备id")
    private Long deviceId;

    @ApiModelProperty(value = "指标编码")
    private String code;

    @ApiModelProperty(value = "监测值")
    private String value;

    @ApiModelProperty(value = "scada采集时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date scadaTime;

}