package com.njcn.advance.pojo.param;

import com.njcn.common.pojo.constant.PatternRegex;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author hongawen
 * @version 1.0.0
 * @date 2023年07月21日 10:20
 */
@Data
public class ResponsibilityCalculateParam implements Serializable {


    @ApiModelProperty("开始时间")
    @NotBlank(message = "参数不能为空")
    @Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
    private String searchBeginTime;

    @ApiModelProperty("结束时间")
    @NotBlank(message = "参数不能为空")
    @Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
    private String searchEndTime;

    @NotBlank(message = "参数不能为空")
    @ApiModelProperty("监测点索引")
    private String lineId;

    @NotBlank(message = "参数不能为空")
    @ApiModelProperty("用采数据索引")
    private String userDataId;

    @Min(0)
    @Max(1)
    @ApiModelProperty("0-电流 1-电压")
    private int type;

    @Min(2)
    @Max(50)
    @ApiModelProperty("谐波次数")
    private Integer time;

}
