优化GetDietHistoryQueryDto,移除limit和page属性的验证装饰器,简化DTO结构。

This commit is contained in:
richarjiang
2025-08-19 14:24:53 +08:00
parent 8e27e3d3e3
commit 4cd8d59f12

View File

@@ -297,15 +297,10 @@ export class GetDietHistoryQueryDto {
@ApiProperty({ description: '每页数量', required: false, default: 20 })
@IsOptional()
@IsNumber()
@Min(1)
@Max(100)
limit?: number;
@ApiProperty({ description: '页码', required: false, default: 1 })
@IsOptional()
@IsNumber()
@Min(1)
page?: number;
}