返回 AiToEarn
applyTask.dto.ts
根目录 / project / aitoearn-electron / server / src / modules / task / dto / applyTask.dto.ts
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 { ApiProperty } from '@nestjs/swagger';
9 import { IsEnum, IsString } from 'class-validator';
10 import { AccountType } from 'src/db/schema/account.schema';
11
12 export class ApplyTaskDto {
13 @ApiProperty({ description: '账号' })
14 @IsString()
15 account: string;
16
17 @ApiProperty({ description: '用户ID' })
18 @IsString()
19 uid: string;
20
21 @ApiProperty({ description: '平台类型', enum: AccountType })
22 @IsEnum(AccountType)
23 accountType: AccountType;
24
25 @ApiProperty({ description: '任务素材ID', required: false })
26 @IsString()
27 taskMaterialId?: string;
28 }
29
29 lines TYPESCRIPT