Files
ulitka/src/modules/comment/presentation/dto/list-comments.dto.ts
T
2026-10-01 12:02:03 +03:00

11 lines
399 B
TypeScript

import { IntDecorator, StringDecorator } from '../../../../common/decorators/validators.js';
export class ListCommentsDto {
@IntDecorator({ isOptional: true, min: 1, max: 100 })
limit: number = 50;
/** id последнего полученного комментария (nextCursor из предыдущего ответа) */
@StringDecorator({ isOptional: true })
cursor?: string;
}