// apps/box-app-api/src/feature/ads/dto/ad.dto.ts import { ApiProperty } from '@nestjs/swagger'; export class AdDto { @ApiProperty({ description: '广告ID(来源:Mongo Ads.id)' }) id: string; @ApiProperty({ description: '广告类型(Ads.adType)' }) adType: string; @ApiProperty({ description: '广告标题(Ads.title)' }) title: string; @ApiProperty({ description: '广告主/来源(Ads.advertiser)' }) advertiser: string; @ApiProperty({ required: false, description: '富文本或描述(Ads.content)' }) content?: string; @ApiProperty({ required: false, description: '封面图CDN地址(Ads.coverImg)', }) coverImg?: string; @ApiProperty({ required: false, description: '跳转链接(Ads.targetUrl)' }) targetUrl?: string; }