实现管理段用户增删改查改密码

This commit is contained in:
2025-05-08 22:07:06 +08:00
parent 887c714e25
commit ff4c755fc8
6 changed files with 132 additions and 3 deletions

View File

@@ -0,0 +1,8 @@
import { IsString, Length, Matches } from "class-validator";
export class UpdatePasswordDto {
@IsString()
@Length(6, 32)
@Matches(/^(?=.*[a-zA-Z])(?=.*\d)[a-zA-Z\d!@#$%^&*()_+\-=\[\]{};:'",.<>/?]{6,32}$/)
password: string;
}