localhost_oa_based/src/common/dto/id.dto.ts

7 lines
96 B
TypeScript

import { IsNumber } from 'class-validator';
export class IdDto {
@IsNumber()
id: number;
}