package com.njcn.energy.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 类的介绍：详细数据
 *
 * @author xuyang
 * @version 1.0.0
 * @createTime 2022/3/9 13:36
 */
@Data
public class DataArrayParam {

    @ApiModelProperty(value = "数据集表Id")
    @NotEmpty(message = "数据集表Id不可为空")
    private String pid;

    @ApiModelProperty(value = "数据类型表id")
    @NotEmpty(message = "数据类型表id不可为空")
    private String dataId;

    @ApiModelProperty(value = "数据分类")
    private String className;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "数据名称")
    @NotEmpty(message = "数据名称不可为空")
    private String name;

    @ApiModelProperty(value = "数据名称别名")
    @NotEmpty(message = "数据名称别名不可为空")
    private String anotherName;

    @ApiModelProperty(value = "数据编号")
    @NotNull(message = "数据编号不可为空")
    private Integer idx;

    @ApiModelProperty(value = "数据类型")
    private String type;

    @ApiModelProperty(value = "相别")
    private String phase;

    @ApiModelProperty(value = "统计类型")
    private String statMethod;

    @ApiModelProperty(value = "influxDB表名")
    private String classId;

}
