import { ApiProperty } from '@nestjs/swagger'; import { IsNotEmpty, IsString } from 'class-validator'; export class AdClickDto { @ApiProperty({ description: '广告 ID', example: '652e7bcf4f1a2b4f98ad1234' }) @IsNotEmpty() @IsString() adId: string; @ApiProperty({ description: '广告类型', example: 'BANNER' }) @IsNotEmpty() @IsString() adType: string; @ApiProperty({ description: '渠道 ID', example: '652e7bcf4f1a2b4f98ch5678', required: true, }) @IsNotEmpty() @IsString() uChannelId: string; @ApiProperty({ description: '设备信息(品牌、系统版本等)', example: 'iPhone 14 Pro, iOS 17.0', required: true, }) @IsNotEmpty() @IsString() machine: string; }