ad.dto.ts 803 B

12345678910111213141516171819202122232425262728
  1. // apps/box-app-api/src/feature/ads/dto/ad.dto.ts
  2. import { ApiProperty } from '@nestjs/swagger';
  3. export class AdDto {
  4. @ApiProperty({ description: '广告ID(来源:Mongo Ads.id)' })
  5. id: string;
  6. @ApiProperty({ description: '广告类型(Ads.adType)' })
  7. adType: string;
  8. @ApiProperty({ description: '广告标题(Ads.title)' })
  9. title: string;
  10. @ApiProperty({ description: '广告主/来源(Ads.advertiser)' })
  11. advertiser: string;
  12. @ApiProperty({ required: false, description: '富文本或描述(Ads.content)' })
  13. content?: string;
  14. @ApiProperty({
  15. required: false,
  16. description: '封面图CDN地址(Ads.coverImg)',
  17. })
  18. coverImg?: string;
  19. @ApiProperty({ required: false, description: '跳转链接(Ads.targetUrl)' })
  20. targetUrl?: string;
  21. }