NestJs
offers something called IntersectionType()
to combine two types into one new type (dto), to Implement that you:
export class queryDto extends IntersectionType(
CurrencyTypeDto,
PaginationLimitDto,
) {}
then you can use it: @Query() query: queryDto
Ref : intersection
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…