mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2026-01-02 05:09:26 +00:00
add smart random
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Length } from 'class-validator'
|
||||
import { PaginationDto } from '../../../infrastructure/common/pagination/pagination.dto'
|
||||
import { IsOptionalOrEmptyString } from '../../../infrastructure/decorators/is-optional-or-empty-string'
|
||||
import { IsOrderBy } from '../../../infrastructure/decorators/is-order-by-constraint'
|
||||
|
||||
export class GetAllCardsInDeckDto extends PaginationDto {
|
||||
@IsOptionalOrEmptyString()
|
||||
@@ -10,4 +11,7 @@ export class GetAllCardsInDeckDto extends PaginationDto {
|
||||
@IsOptionalOrEmptyString()
|
||||
@Length(1, 30)
|
||||
answer?: string
|
||||
|
||||
@IsOrderBy()
|
||||
orderBy?: string | null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user