forked from Yara724/api
Fix SMS, and added pagination+sorting+searching for GETs
This commit is contained in:
23
src/request-management/dto/blame-list-user-v2.dto.ts
Normal file
23
src/request-management/dto/blame-list-user-v2.dto.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
||||
|
||||
/** User / field-expert blame list (v2 GET /v2/blame-request-management). */
|
||||
export class GetUserBlameListV2ResponseDto {
|
||||
@ApiProperty({
|
||||
type: "array",
|
||||
description: "Blame requests for the current user (parties stripped)",
|
||||
items: { type: "object", additionalProperties: true },
|
||||
})
|
||||
list: Record<string, unknown>[];
|
||||
|
||||
@ApiProperty({ description: "Count after `search` filter" })
|
||||
total: number;
|
||||
|
||||
@ApiPropertyOptional()
|
||||
page?: number;
|
||||
|
||||
@ApiPropertyOptional()
|
||||
limit?: number;
|
||||
|
||||
@ApiPropertyOptional()
|
||||
totalPages?: number;
|
||||
}
|
||||
Reference in New Issue
Block a user