package com.njcn.product.advance.responsility.imapper;

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

import java.time.Instant;

/**
 * @Author: cdf
 * @CreateTime: 2025-09-18
 * @Description:
 */
@Data
public class DataHarmP {
    @Column(name = "time")
    @JsonSerialize(using = InstantDateSerializer.class)
    @JsonDeserialize(using = InstantDateDeserializer.class)
    private Instant time;

    @Column(name = "line_id")
    private String lineId;

    @IgnoreData(true)
    private Float value;
}
