diff options
author | Chocobozzz <me@florianbigard.com> | 2020-03-11 14:39:28 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-03-11 15:02:20 +0100 |
commit | 764a965778ac89e027fd05dd35697c6763e0dc18 (patch) | |
tree | ecc18834566b940c729a57b5bf0d088e894f03d3 /shared/models/overviews/videos-overview.ts | |
parent | fab6746354f9d9cb65c35d8bd9352c4b773b4c69 (diff) | |
download | PeerTube-764a965778ac89e027fd05dd35697c6763e0dc18.tar.gz PeerTube-764a965778ac89e027fd05dd35697c6763e0dc18.tar.zst PeerTube-764a965778ac89e027fd05dd35697c6763e0dc18.zip |
Implement pagination for overviews endpoint
Diffstat (limited to 'shared/models/overviews/videos-overview.ts')
-rw-r--r-- | shared/models/overviews/videos-overview.ts | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/shared/models/overviews/videos-overview.ts b/shared/models/overviews/videos-overview.ts index e725f166b..0f3cb4a52 100644 --- a/shared/models/overviews/videos-overview.ts +++ b/shared/models/overviews/videos-overview.ts | |||
@@ -1,18 +1,24 @@ | |||
1 | import { Video, VideoChannelSummary, VideoConstant } from '../videos' | 1 | import { Video, VideoChannelSummary, VideoConstant } from '../videos' |
2 | 2 | ||
3 | export interface ChannelOverview { | ||
4 | channel: VideoChannelSummary | ||
5 | videos: Video[] | ||
6 | } | ||
7 | |||
8 | export interface CategoryOverview { | ||
9 | category: VideoConstant<number> | ||
10 | videos: Video[] | ||
11 | } | ||
12 | |||
13 | export interface TagOverview { | ||
14 | tag: string | ||
15 | videos: Video[] | ||
16 | } | ||
17 | |||
3 | export interface VideosOverview { | 18 | export interface VideosOverview { |
4 | channels: { | 19 | channels: ChannelOverview[] |
5 | channel: VideoChannelSummary | ||
6 | videos: Video[] | ||
7 | }[] | ||
8 | 20 | ||
9 | categories: { | 21 | categories: CategoryOverview[] |
10 | category: VideoConstant<number> | ||
11 | videos: Video[] | ||
12 | }[] | ||
13 | 22 | ||
14 | tags: { | 23 | tags: TagOverview[] |
15 | tag: string | ||
16 | videos: Video[] | ||
17 | }[] | ||
18 | } | 24 | } |