mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-17 12:33:22 +00:00
add decks crud
This commit is contained in:
16
src/modules/decks/dto/update-deck.dto.ts
Normal file
16
src/modules/decks/dto/update-deck.dto.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { PartialType } from '@nestjs/mapped-types'
|
||||
import { CreateDeckDto } from './create-deck.dto'
|
||||
import { IsOptionalOrEmptyString } from '../../../infrastructure/decorators/is-optional-or-empty-string'
|
||||
import { IsBoolean } from 'class-validator'
|
||||
|
||||
export class UpdateDeckDto extends PartialType(CreateDeckDto) {
|
||||
@IsOptionalOrEmptyString()
|
||||
name: string
|
||||
|
||||
@IsOptionalOrEmptyString()
|
||||
@IsBoolean()
|
||||
isPrivate: boolean
|
||||
|
||||
@IsOptionalOrEmptyString()
|
||||
cover: string
|
||||
}
|
||||
Reference in New Issue
Block a user