微调
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
package com.njcn.gather.detection.pojo.param;
|
package com.njcn.gather.detection.pojo.param;
|
||||||
|
|
||||||
|
import com.njcn.gather.script.pojo.constant.PqScriptValidMessage;
|
||||||
import com.njcn.gather.source.pojo.constant.PqSourceValidMessage;
|
import com.njcn.gather.source.pojo.constant.PqSourceValidMessage;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotBlank;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author caozehui
|
* @author caozehui
|
||||||
@@ -29,6 +31,7 @@ public class SimulateDetectionParam {
|
|||||||
*/
|
*/
|
||||||
private String scriptId;
|
private String scriptId;
|
||||||
|
|
||||||
|
@NotNull(message = PqScriptValidMessage.INDEX_NOT_NULL)
|
||||||
private Integer scriptIndex;
|
private Integer scriptIndex;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -40,5 +43,6 @@ public class SimulateDetectionParam {
|
|||||||
/**
|
/**
|
||||||
* 脚本值类型 1绝对值脚本、2相对值脚本
|
* 脚本值类型 1绝对值脚本、2相对值脚本
|
||||||
*/
|
*/
|
||||||
|
@NotNull(message = PqScriptValidMessage.VALUE_TYPE_NOT_NULL)
|
||||||
private int valueType;
|
private int valueType;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 = "脚本值类型不能为空";
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user