| 12345678910111213141516171819202122232425 |
- // apps/box-app-api/src/feature/ads/dto/ad-list-response.dto.ts
- import { ApiProperty } from '@nestjs/swagger';
- import { AdItemDto } from './ad-item.dto';
- import type { AdType } from '@box/common/ads/ad-types';
- export class AdListResponseDto {
- @ApiProperty({ description: '当前页码' })
- page: number;
- @ApiProperty({ description: '每页数量' })
- size: number;
- @ApiProperty({ description: '广告总数' })
- total: number;
- @ApiProperty({ description: '广告类型' })
- adType: AdType;
- @ApiProperty({
- description: '广告项列表',
- type: AdItemDto,
- isArray: true,
- })
- items: AdItemDto[];
- }
|