init
This commit is contained in:
10
backend/src/ideas/dto/update-idea.dto.ts
Normal file
10
backend/src/ideas/dto/update-idea.dto.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import { PartialType } from '@nestjs/mapped-types';
|
||||
import { IsOptional, IsInt, Min } from 'class-validator';
|
||||
import { CreateIdeaDto } from './create-idea.dto';
|
||||
|
||||
export class UpdateIdeaDto extends PartialType(CreateIdeaDto) {
|
||||
@IsOptional()
|
||||
@IsInt()
|
||||
@Min(0)
|
||||
order?: number;
|
||||
}
|
||||
Reference in New Issue
Block a user