Fix(ToolParam): Fix wrong validate message

Fix wrong validate message in ToolCreateParam and ToolUpgradeParam
This commit is contained in:
2024-04-26 16:35:22 +08:00
parent bdd0197d78
commit 4527944a21
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ data class ToolCreateParam(
@field: NotBlank(message = "ToolId can not be blank")
@field: Pattern(
regexp = "^[a-zA-Z-_][0-9a-zA-Z-_]{2,19}\$",
message = "Ver can only match '^[a-zA-Z-_][0-9a-zA-Z-_]{2,19}\$'"
message = "ToolId can only match '^[a-zA-Z-_][0-9a-zA-Z-_]{2,19}\$'"
)
var toolId: String?,

View File

@@ -27,7 +27,7 @@ data class ToolUpgradeParam(
@field: NotBlank(message = "ToolId can not be blank")
@field: Pattern(
regexp = "^[a-zA-Z-_][0-9a-zA-Z-_]{2,19}\$",
message = "Ver can only match '^[a-zA-Z-_][0-9a-zA-Z-_]{2,19}\$'"
message = "ToolId can only match '^[a-zA-Z-_][0-9a-zA-Z-_]{2,19}\$'"
)
var toolId: String?,