| 1 | /* |
| 2 | * @Author: nevin |
| 3 | * @Date: 2025-02-18 22:32:02 |
| 4 | * @LastEditTime: 2025-02-27 20:22:49 |
| 5 | * @LastEditors: nevin |
| 6 | * @Description: |
| 7 | */ |
| 8 | import { ApiProperty } from '@nestjs/swagger'; |
| 9 | import { IsEnum, IsOptional, IsString } from 'class-validator'; |
| 10 | import { TaskStatus } from '../../../db/schema/task.schema'; |
| 11 | import { PagerDto } from '../../../common/dto/pager.dto'; |
| 12 | |
| 13 | export class AdminQueryUserTaskDto extends PagerDto { |
| 14 | @ApiProperty({ description: '任务状态', enum: TaskStatus, required: false }) |
| 15 | @IsEnum(TaskStatus) |
| 16 | @IsOptional() |
| 17 | status?: TaskStatus; |
| 18 | |
| 19 | @ApiProperty({ description: '搜索关键词(标题)', required: false }) |
| 20 | @IsString() |
| 21 | @IsOptional() |
| 22 | keyword?: string; |
| 23 | |
| 24 | @ApiProperty({ type: [String] }) |
| 25 | time?: [string, string]; |
| 26 | } |
| 27 |