diff options
author | Chocobozzz <me@florianbigard.com> | 2021-06-28 17:30:59 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-06-29 14:56:35 +0200 |
commit | d4a8e7a65f97bb3257facc13e1ae8ffdbad61ddb (patch) | |
tree | a4cb07318100031951c3dffc61f4f2cb95d2cbd0 /shared/models/common | |
parent | 62ddc31a9e4b92d7d27898ccfc363f68ab044139 (diff) | |
download | PeerTube-d4a8e7a65f97bb3257facc13e1ae8ffdbad61ddb.tar.gz PeerTube-d4a8e7a65f97bb3257facc13e1ae8ffdbad61ddb.tar.zst PeerTube-d4a8e7a65f97bb3257facc13e1ae8ffdbad61ddb.zip |
Support short uuid for GET video/playlist
Diffstat (limited to 'shared/models/common')
-rw-r--r-- | shared/models/common/index.ts | 1 | ||||
-rw-r--r-- | shared/models/common/result-list.model.ts | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/shared/models/common/index.ts b/shared/models/common/index.ts new file mode 100644 index 000000000..4db85eff2 --- /dev/null +++ b/shared/models/common/index.ts | |||
@@ -0,0 +1 @@ | |||
export * from './result-list.model' | |||
diff --git a/shared/models/common/result-list.model.ts b/shared/models/common/result-list.model.ts new file mode 100644 index 000000000..fcafcfb2f --- /dev/null +++ b/shared/models/common/result-list.model.ts | |||
@@ -0,0 +1,8 @@ | |||
1 | export interface ResultList<T> { | ||
2 | total: number | ||
3 | data: T[] | ||
4 | } | ||
5 | |||
6 | export interface ThreadsResultList <T> extends ResultList <T> { | ||
7 | totalNotDeletedComments: number | ||
8 | } | ||