forked from Yara724/api
Fix SMS, and added pagination+sorting+searching for GETs
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
|
||||
export class ClaimListItemV2Dto {
|
||||
@ApiProperty({ description: 'Claim case ID', example: '507f1f77bcf86cd799439011' })
|
||||
@@ -34,6 +34,17 @@ export class GetMyClaimsV2ResponseDto {
|
||||
@ApiProperty({ description: 'List of user claims', type: [ClaimListItemV2Dto] })
|
||||
list: ClaimListItemV2Dto[];
|
||||
|
||||
@ApiProperty({ description: 'Total count', example: 5 })
|
||||
@ApiProperty({ description: 'Total count after search filter', example: 5 })
|
||||
total: number;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
description: 'Current page when `page` or `limit` query params were sent',
|
||||
})
|
||||
page?: number;
|
||||
|
||||
@ApiPropertyOptional({ description: 'Page size when paginating' })
|
||||
limit?: number;
|
||||
|
||||
@ApiPropertyOptional({ description: 'Total pages when paginating' })
|
||||
totalPages?: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user