| 1 | /* |
| 2 | * @Author: nevin |
| 3 | * @Date: 2025-03-01 19:27:26 |
| 4 | * @LastEditTime: 2025-05-06 13:46:44 |
| 5 | * @LastEditors: nevin |
| 6 | * @Description: 任务接受 |
| 7 | */ |
| 8 | import { Expose } from 'class-transformer'; |
| 9 | import { IsEnum, IsOptional, IsString } from 'class-validator'; |
| 10 | import { TaskType } from 'src/db/schema/task.schema'; |
| 11 | |
| 12 | export class ActionTaskMaterialDto { |
| 13 | @IsString() |
| 14 | @Expose() |
| 15 | taskId: string; |
| 16 | |
| 17 | @IsString() |
| 18 | @IsOptional() |
| 19 | @Expose() |
| 20 | title?: string; |
| 21 | |
| 22 | @IsEnum(TaskType) |
| 23 | @Expose() |
| 24 | type: TaskType; |
| 25 | |
| 26 | @IsString() |
| 27 | @IsOptional() |
| 28 | @Expose() |
| 29 | coverUrl?: string; |
| 30 | |
| 31 | @IsString() |
| 32 | @IsOptional() |
| 33 | @Expose() |
| 34 | temp?: string; |
| 35 | |
| 36 | @IsString() |
| 37 | @IsOptional() |
| 38 | @Expose() |
| 39 | desc?: string; |
| 40 | |
| 41 | // 图片对象列表 |
| 42 | @IsOptional() |
| 43 | @Expose() |
| 44 | imageList?: any; |
| 45 | } |
| 46 |