ad-list-response.dto.ts 629 B

12345678910111213141516171819202122232425
  1. // apps/box-app-api/src/feature/ads/dto/ad-list-response.dto.ts
  2. import { ApiProperty } from '@nestjs/swagger';
  3. import { AdItemDto } from './ad-item.dto';
  4. import type { AdType } from '@box/common/ads/ad-types';
  5. export class AdListResponseDto {
  6. @ApiProperty({ description: '当前页码' })
  7. page: number;
  8. @ApiProperty({ description: '每页数量' })
  9. size: number;
  10. @ApiProperty({ description: '广告总数' })
  11. total: number;
  12. @ApiProperty({ description: '广告类型' })
  13. adType: AdType;
  14. @ApiProperty({
  15. description: '广告项列表',
  16. type: AdItemDto,
  17. isArray: true,
  18. })
  19. items: AdItemDto[];
  20. }