package com.njcn.harmonic.pojo.param;

import com.njcn.common.pojo.constant.PatternRegex;
import com.njcn.common.pojo.dto.SimpleDTO;
import com.njcn.harmonic.constant.HarmonicValidMessage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.List;

/**
 * @author: chenchao
 * @date: 2022/03/10 22:05
 * @Description: <描述>
 */
@Data
public class THDistortionParam {

    @ApiModelProperty("统计类型")
    @NotNull(message = HarmonicValidMessage.DATA_NOT_BLANK)
    private SimpleDTO statisticalType;

    @ApiModelProperty("区域")
    @NotBlank(message = HarmonicValidMessage.DATA_NOT_BLANK)
    private String deptIndex;

    @ApiModelProperty("电压等级")
    private List<SimpleDTO> voltageLevel;

    @ApiModelProperty("终端厂家")
    private List<SimpleDTO> manufacturer;

    @ApiModelProperty("干扰源类型")
    private List<SimpleDTO> interference;

    @ApiModelProperty("开始时间")
    @NotBlank(message = HarmonicValidMessage.DATA_NOT_BLANK)
    @Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
    private String searchBeginTime;

    @ApiModelProperty("结束时间")
    @NotBlank(message = HarmonicValidMessage.DATA_NOT_BLANK)
    @Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
    private String searchEndTime;

}
