优化类型

This commit is contained in:
05412 2024-07-25 18:14:31 +08:00
parent a8f8fa97d7
commit 8ec29a69f8

View File

@ -7,7 +7,7 @@ import org.hibernate.validator.constraints.Length
/**
* 用户信息请求体
*/
data class UserDto (
class UserDto (
@JsonProperty("username")
@get:Length(max = 16, min = 4, message = "username length must be between 4 and 16")
@get:NotNull(message = "username cannot be null")