import { ApiProperty } from '@nestjs/swagger'; export class ArticleSearchDto { @ApiProperty({ description: '文章标题', type: 'string' }) title?: string; @ApiProperty({ description: '文章内容非html格式', nullable: true, type: 'string', }) content?: string; @ApiProperty({ description: '', nullable: true, type: 'string' }) keyword?: string; @ApiProperty({ description: '基本信息 JSON字符串格式', nullable: true, type: 'string', }) baseInfo?: string; @ApiProperty({ description: '类型', type: 'string', nullable: true }) type?: string; @ApiProperty({ description: 'url地址', type: 'string', nullable: true }) url?: string; @ApiProperty({ description: '状态', nullable: true, type: 'number' }) status?: number; @ApiProperty({ description: '创建时间', nullable: true, type: 'string' }) createdTime?: string; @ApiProperty({ description: '更新时间', nullable: true, type: 'string' }) updatedTime?: string; @ApiProperty({ description: '发布开始时间', nullable: true, type: 'string' }) startPublishTime?: string; @ApiProperty({ description: '发布结束时间', nullable: true, type: 'string' }) endPublishTime?: string; @ApiProperty({ description: 'limit', nullable: true, type: 'number' }) limit?: number; @ApiProperty({ description: '游标', nullable: true, type: 'number' }) offset?: number; @ApiProperty({ description: '页码', nullable: true, type: 'number' }) page?: number; @ApiProperty({ description: '排序', nullable: true, type: 'string' }) sort?: string; @ApiProperty({ description: '类别, 例如:/search?c=[1,2]', nullable: true, type: 'number[]', }) c?: string; @ApiProperty({ description: '主题, 例如:/search?t=[1,2]', nullable: true, type: 'number[]', }) t?: string; }