完成管理员获取用户列表

This commit is contained in:
2025-05-07 23:48:40 +08:00
parent b6f1495981
commit c2e5ab51df
8 changed files with 115 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import { Type } from 'class-transformer';
import { IsInt, IsOptional, Max, Min } from 'class-validator';
export class PaginationDto {
@IsOptional()
@Type(() => Number)
@IsInt()
@Min(1)
page?: number = 1;
@IsOptional()
@Type(() => Number)
@IsInt()
@Min(1)
pageSize?: number = 20;
}