src/modules/disqus/disqus.dto.ts
Properties |
post_id |
Type : string
|
Decorators :
@IsNotEmpty()
|
Defined in src/modules/disqus/disqus.dto.ts:27
|
import { IsString, IsNumberString, IsNotEmpty, IsNumber } from 'class-validator'
export interface GeneralDisqusParams {
[key: string]: any
}
export enum ThreadState {
Open = 'open',
Closed = 'closed'
}
export class CallbackCodeDTO {
@IsNotEmpty()
@IsString()
code: string
}
export class ThreadPostIdDTO {
@IsNotEmpty()
@IsNumberString()
post_id: string
}
export class CommentIdDTO {
@IsNotEmpty()
@IsNumber()
comment_id: number
}