diff options
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 | } | ||