| 1 | /* |
| 2 | * @Author: nevin |
| 3 | * @Date: 2025-02-18 22:32:02 |
| 4 | * @LastEditTime: 2025-03-03 19:28:44 |
| 5 | * @LastEditors: nevin |
| 6 | * @Description: 更新 |
| 7 | */ |
| 8 | import { ApiProperty, PartialType } from '@nestjs/swagger'; |
| 9 | import { CreateTaskDto } from './create-task.dto'; |
| 10 | import { IsEnum, IsString } from 'class-validator'; |
| 11 | import { TaskStatus } from 'src/db/schema/task.schema'; |
| 12 | |
| 13 | export class UpdateTaskDto extends PartialType(CreateTaskDto) {} |
| 14 | |
| 15 | export class ActionTaskFileDto { |
| 16 | @ApiProperty({ description: '名称' }) |
| 17 | @IsString() |
| 18 | name: string; |
| 19 | |
| 20 | @ApiProperty({ description: '文件URL' }) |
| 21 | @IsString() |
| 22 | url: string; |
| 23 | } |
| 24 | |
| 25 | export class UpTaskStatusDto { |
| 26 | @IsString() |
| 27 | id: string; |
| 28 | |
| 29 | @IsEnum(TaskStatus) |
| 30 | status: TaskStatus; |
| 31 | } |
| 32 |