修复前端直接修改user的问题

This commit is contained in:
2025-05-12 12:18:14 +08:00
parent f7f8a3b3e4
commit fbc9a4f140
2 changed files with 25 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
import { IsEmail, IsOptional, IsString, Length, Matches, ValidateIf } from "class-validator";
import { IsEmail, IsOptional, IsString, Length, Matches } from "class-validator";
export class UpdateDto {
@IsString({ message: '用户名不得为空' })