优化类型
This commit is contained in:
parent
a8f8fa97d7
commit
8ec29a69f8
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user