diff --git a/src/main/java/dev/surl/surl/dto/UserDto.kt b/src/main/java/dev/surl/surl/dto/UserDto.kt index 32ed805..6cff0dd 100644 --- a/src/main/java/dev/surl/surl/dto/UserDto.kt +++ b/src/main/java/dev/surl/surl/dto/UserDto.kt @@ -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")