针对第三方测试功能调整

This commit is contained in:
xy
2024-12-02 19:50:08 +08:00
parent 396fe59b94
commit 6a3b848dc0
6 changed files with 31 additions and 7 deletions

View File

@@ -7,10 +7,8 @@ package com.njcn.web.constant;
*/
public interface ValidMessage {
String MISS_PREFIX="字段不能为空,请检查";
String ID_NOT_BLANK = "id不能为空请检查id参数";
String ID_FORMAT_ERROR = "id格式错误请检查id参数";
@@ -69,7 +67,7 @@ public interface ValidMessage {
String DEVICE_VERSION_NOT_BLANK = "装置版本json文件不能为空请检查deviceVersionFile参数";
String SEARCH_DATA_ERROR = "搜索值有特殊字符或者过长,请检查搜索参数";
String SEARCH_DATA_ERROR = "搜索值过长,请检查搜索参数";
String DATA_TOO_LONG = "参数过长,请检查参数";

View File

@@ -19,7 +19,7 @@ public class BaseParam implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty("搜索值")
@Pattern(regexp = PatternRegex.ALL_CHAR_1_20, message = ValidMessage.SEARCH_DATA_ERROR)
@Pattern(regexp = PatternRegex.DES32_REGEX, message = ValidMessage.SEARCH_DATA_ERROR)
private String searchValue;
@ApiModelProperty("开始时间")