ad-click.dto.ts 737 B

1234567891011121314151617181920212223242526272829303132
  1. import { ApiProperty } from '@nestjs/swagger';
  2. import { IsNotEmpty, IsString } from 'class-validator';
  3. export class AdClickDto {
  4. @ApiProperty({ description: '广告 ID', example: '652e7bcf4f1a2b4f98ad1234' })
  5. @IsNotEmpty()
  6. @IsString()
  7. adId: string;
  8. @ApiProperty({ description: '广告类型', example: 'BANNER' })
  9. @IsNotEmpty()
  10. @IsString()
  11. adType: string;
  12. @ApiProperty({
  13. description: '渠道 ID',
  14. example: '652e7bcf4f1a2b4f98ch5678',
  15. required: true,
  16. })
  17. @IsNotEmpty()
  18. @IsString()
  19. uChannelId: string;
  20. @ApiProperty({
  21. description: '设备信息(品牌、系统版本等)',
  22. example: 'iPhone 14 Pro, iOS 17.0',
  23. required: true,
  24. })
  25. @IsNotEmpty()
  26. @IsString()
  27. machine: string;
  28. }