user service

This commit is contained in:
2026-06-28 19:44:47 +03:30
parent 9dbf3c43fa
commit 4fbb86663a
3 changed files with 8 additions and 20 deletions
+1 -16
View File
@@ -1,11 +1,4 @@
import {
IsEnum,
IsOptional,
IsString,
Length,
Matches,
} from 'class-validator';
import { UserRole } from '../enums/user-role.enum';
import { IsOptional, IsString, Length } from 'class-validator';
export class UpdateUserDto {
@IsOptional()
@@ -17,12 +10,4 @@ export class UpdateUserDto {
@IsString()
@Length(1, 100)
lastName?: string;
@IsOptional()
@Matches(/^09\d{9}$/)
mobile?: string;
@IsOptional()
@IsEnum(UserRole)
role?: UserRole;
}