mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-09 20:57:21 +08:00
refactor: 用 @Email 和 @Mobile 注解替换了部分验证,提高了代码可读性,修改了多处错误提示信息,使其更加友好
This commit is contained in:
@@ -65,7 +65,7 @@ public class JobReq implements Serializable {
|
||||
* 触发类型
|
||||
*/
|
||||
@Schema(description = "触发类型", example = "2")
|
||||
@NotNull(message = "触发类型非法")
|
||||
@NotNull(message = "触发类型无效")
|
||||
private JobTriggerTypeEnum triggerType;
|
||||
|
||||
/**
|
||||
@@ -85,7 +85,7 @@ public class JobReq implements Serializable {
|
||||
* 任务类型
|
||||
*/
|
||||
@Schema(description = "任务类型", example = "1")
|
||||
@NotNull(message = "任务类型非法")
|
||||
@NotNull(message = "任务类型无效")
|
||||
private JobTaskTypeEnum taskType;
|
||||
|
||||
/**
|
||||
@@ -111,14 +111,14 @@ public class JobReq implements Serializable {
|
||||
* 路由策略
|
||||
*/
|
||||
@Schema(description = "路由策略", example = "4")
|
||||
@NotNull(message = "路由策略非法")
|
||||
@NotNull(message = "路由策略无效")
|
||||
private JobRouteStrategyEnum routeKey;
|
||||
|
||||
/**
|
||||
* 阻塞策略
|
||||
*/
|
||||
@Schema(description = "阻塞策略", example = "1")
|
||||
@NotNull(message = "阻塞策略非法")
|
||||
@NotNull(message = "阻塞策略无效")
|
||||
private JobBlockStrategyEnum blockStrategy;
|
||||
|
||||
/**
|
||||
|
@@ -42,7 +42,7 @@ public class JobStatusReq implements Serializable {
|
||||
* 任务状态
|
||||
*/
|
||||
@Schema(description = "任务状态", example = "1")
|
||||
@NotNull(message = "任务状态非法")
|
||||
@NotNull(message = "任务状态无效")
|
||||
private JobStatusEnum jobStatus;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user