mirror of
https://github.com/aleksilassila/reiverr.git
synced 2026-04-21 16:25:11 +02:00
29 lines
556 B
TypeScript
29 lines
556 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { PaginatedResponse, PaginationParams } from 'plugins/plugin-types';
|
|
|
|
export class PaginatedResponseDto<T> implements PaginatedResponse<T> {
|
|
@ApiProperty()
|
|
total: number;
|
|
|
|
@ApiProperty()
|
|
page: number;
|
|
|
|
@ApiProperty()
|
|
itemsPerPage: number;
|
|
|
|
// @ApiProperty()
|
|
items: T[];
|
|
}
|
|
|
|
export class PaginationParamsDto implements PaginationParams {
|
|
@ApiProperty()
|
|
page: number;
|
|
|
|
@ApiProperty()
|
|
itemsPerPage: number;
|
|
}
|
|
|
|
export class SuccessResponseDto {
|
|
@ApiProperty()
|
|
success: boolean;
|
|
} |