package com.njcn.influx.pojo.dto;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.njcn.common.utils.serializer.InstantDateDeserializer;
import com.njcn.common.utils.serializer.InstantDateSerializer;
import com.njcn.influx.ano.IgnoreData;
import lombok.Data;
import org.influxdb.annotation.Column;

import java.io.Serializable;
import java.time.Instant;

/**
 * @author hongawen
 * @version 1.0.0
 * @date 2023年07月19日 09:43
 */
@Data
public class HarmData implements Serializable{


    @Column(name = "time")
    @JsonSerialize(using = InstantDateSerializer.class)
    @JsonDeserialize(using = InstantDateDeserializer.class)
    private Instant time;

    @IgnoreData(value = true)
    private Float value;


}
