This commit is contained in:
caozehui
2025-03-10 10:12:52 +08:00
parent 1075a72375
commit 337797b0ed
2 changed files with 15 additions and 0 deletions

View File

@@ -1,10 +1,12 @@
package com.njcn.gather.detection.pojo.param;
import com.njcn.gather.script.pojo.constant.PqScriptValidMessage;
import com.njcn.gather.source.pojo.constant.PqSourceValidMessage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
/**
* @author caozehui
@@ -29,6 +31,7 @@ public class SimulateDetectionParam {
*/
private String scriptId;
@NotNull(message = PqScriptValidMessage.INDEX_NOT_NULL)
private Integer scriptIndex;
/**
@@ -40,5 +43,6 @@ public class SimulateDetectionParam {
/**
* 脚本值类型 1绝对值脚本、2相对值脚本
*/
@NotNull(message = PqScriptValidMessage.VALUE_TYPE_NOT_NULL)
private int valueType;
}

View File

@@ -0,0 +1,11 @@
package com.njcn.gather.script.pojo.constant;
/**
* @author caozehui
* @data 2025-03-10
*/
public interface PqScriptValidMessage {
String INDEX_NOT_NULL = "index不能为空";
String VALUE_TYPE_NOT_NULL = "脚本值类型不能为空";
}