|
|
@@ -69,68 +69,6 @@ export class CategoryDto {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Video item for lists
|
|
|
- */
|
|
|
-export class VideoItemDto {
|
|
|
- @ApiProperty({ description: '视频ID(来源:Mongo Video.id)' })
|
|
|
- id: string;
|
|
|
-
|
|
|
- @ApiProperty({ description: '视频标题(Video.title)' })
|
|
|
- title: string;
|
|
|
-
|
|
|
- @ApiProperty({ required: false, description: '封面图(coverImg)' })
|
|
|
- coverImg?: string;
|
|
|
-
|
|
|
- @ApiProperty({ required: false, description: '新封面图(coverImgNew)' })
|
|
|
- coverImgNew?: string;
|
|
|
-
|
|
|
- @ApiProperty({ required: false, description: '视频时长(秒)(videoTime)' })
|
|
|
- videoTime?: number;
|
|
|
-
|
|
|
- @ApiProperty({ required: false, description: '发布信息(publish)' })
|
|
|
- publish?: string;
|
|
|
-
|
|
|
- @ApiProperty({
|
|
|
- required: false,
|
|
|
- description: '二级标签列表(secondTags)',
|
|
|
- })
|
|
|
- secondTags?: string[];
|
|
|
-
|
|
|
- @ApiProperty({ required: false, description: '更新时间(updatedAt)' })
|
|
|
- updatedAt?: Date;
|
|
|
-
|
|
|
- @ApiProperty({ required: false, description: '文件名(filename)' })
|
|
|
- filename?: string;
|
|
|
-
|
|
|
- @ApiProperty({ required: false, description: '字段名(fieldNameFs)' })
|
|
|
- fieldNameFs?: string;
|
|
|
-
|
|
|
- @ApiProperty({ required: false, description: '宽度(width)' })
|
|
|
- width?: number;
|
|
|
-
|
|
|
- @ApiProperty({ required: false, description: '高度(height)' })
|
|
|
- height?: number;
|
|
|
-
|
|
|
- @ApiProperty({
|
|
|
- required: false,
|
|
|
- description: '标签名称列表(tags,denormalized)',
|
|
|
- })
|
|
|
- tags?: string[];
|
|
|
-
|
|
|
- @ApiProperty({ required: false, description: '预文件名(preFileName)' })
|
|
|
- preFileName?: string;
|
|
|
-
|
|
|
- @ApiProperty({
|
|
|
- required: false,
|
|
|
- description: '演员列表(actors)',
|
|
|
- })
|
|
|
- actors?: string[];
|
|
|
-
|
|
|
- @ApiProperty({ required: false, description: '文件大小(size,BigInt)' })
|
|
|
- size?: string;
|
|
|
-}
|
|
|
-
|
|
|
-/**
|
|
|
* Waterfall ads group
|
|
|
*/
|
|
|
export class WaterfallAdsDto {
|
|
|
@@ -206,38 +144,27 @@ export class HomeAdsDto {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Recommended videos section (7 videos: 1 hero + 6 grid)
|
|
|
- */
|
|
|
-export class RecommendedVideosDto {
|
|
|
- @ApiProperty({ type: [VideoItemDto], description: '全部7条视频数据' })
|
|
|
- items: VideoItemDto[];
|
|
|
-
|
|
|
- @ApiProperty({ description: '总数(固定为7)' })
|
|
|
- total: number;
|
|
|
-}
|
|
|
-
|
|
|
-/**
|
|
|
* Complete homepage response
|
|
|
*/
|
|
|
-export class HomepageDto {
|
|
|
- @ApiProperty({ type: HomeAdsDto, description: '首页广告聚合数据' })
|
|
|
- ads: HomeAdsDto;
|
|
|
-
|
|
|
- @ApiProperty({
|
|
|
- type: [AnnouncementDto],
|
|
|
- description: '公告列表(来源:SystemParam)',
|
|
|
- })
|
|
|
- announcements: AnnouncementDto[];
|
|
|
-
|
|
|
- @ApiProperty({
|
|
|
- type: [CategoryDto],
|
|
|
- description: '视频分类列表(来源:Category)',
|
|
|
- })
|
|
|
- categories: CategoryDto[];
|
|
|
-
|
|
|
- @ApiProperty({
|
|
|
- type: RecommendedVideosDto,
|
|
|
- description: '推荐视频数据(来源:Video)',
|
|
|
- })
|
|
|
- videos: RecommendedVideosDto;
|
|
|
-}
|
|
|
+// export class HomepageDto {
|
|
|
+// @ApiProperty({ type: HomeAdsDto, description: '首页广告聚合数据' })
|
|
|
+// ads: HomeAdsDto;
|
|
|
+
|
|
|
+// @ApiProperty({
|
|
|
+// type: [AnnouncementDto],
|
|
|
+// description: '公告列表(来源:SystemParam)',
|
|
|
+// })
|
|
|
+// announcements: AnnouncementDto[];
|
|
|
+
|
|
|
+// @ApiProperty({
|
|
|
+// type: [CategoryDto],
|
|
|
+// description: '视频分类列表(来源:Category)',
|
|
|
+// })
|
|
|
+// categories: CategoryDto[];
|
|
|
+
|
|
|
+// @ApiProperty({
|
|
|
+// type: RecommendedVideosDto,
|
|
|
+// description: '推荐视频数据(来源:Video)',
|
|
|
+// })
|
|
|
+// videos: RecommendedVideosDto;
|
|
|
+// }
|