package com.njcn.csharmonic.param;

import com.njcn.web.pojo.param.BaseParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import java.io.Serializable;
import java.util.List;

/**
 * @author 徐扬
 */
@Data
public class ItemParam extends BaseParam implements Serializable{

    @ApiModelProperty("测试项id")
    private String id;

    @ApiModelProperty(value = "持续时间最小值",name = "evtParamTm")
    @Range(min = 0, max = 60, message = "持续时间范围应在0~60s之间")
    private Double evtParamTmMin;

    @ApiModelProperty(value = "持续时间最大值",name = "evtParamTm")
    @Range(min = 0, max = 60, message = "持续时间范围应在0~60s之间")
    private Double evtParamTmMax;

    @ApiModelProperty(value = "特征幅值最小值",name = "featureAmplitude")
    @Range(min = 0, max = 180, message = "特征幅值范围应在0~180%之间")
    private Double featureAmplitudeMin;

    @ApiModelProperty(value = "特征幅值最大值",name = "featureAmplitude")
    @Range(min = 0, max = 180, message = "特征幅值范围应在0~180%之间")
    private Double featureAmplitudeMax;

    @ApiModelProperty(value = "是否存在波形",name = "fileFlag")
    private Integer fileFlag;

    @ApiModelProperty(value = "严重度最小值",name = "severityMin")
    @Range(min = 0, max = 10, message = "严重度范围应在0~10之间")
    private Double severityMin;

    @ApiModelProperty(value = "严重度最大值",name = "severityMax")
    @Range(min = 0, max = 10, message = "严重度范围应在0~10之间")
    private Double severityMax;

    @ApiModelProperty(value = "事件类型",name = "target")
    private List<String> target;

}
