优化GetDietHistoryQueryDto,移除limit和page属性的验证装饰器,简化DTO结构。
This commit is contained in:
@@ -297,15 +297,10 @@ export class GetDietHistoryQueryDto {
|
|||||||
|
|
||||||
@ApiProperty({ description: '每页数量', required: false, default: 20 })
|
@ApiProperty({ description: '每页数量', required: false, default: 20 })
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@IsNumber()
|
|
||||||
@Min(1)
|
|
||||||
@Max(100)
|
|
||||||
limit?: number;
|
limit?: number;
|
||||||
|
|
||||||
@ApiProperty({ description: '页码', required: false, default: 1 })
|
@ApiProperty({ description: '页码', required: false, default: 1 })
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@IsNumber()
|
|
||||||
@Min(1)
|
|
||||||
page?: number;
|
page?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user