chore: init
This commit is contained in:
28
src/interfaces/article.ts
Normal file
28
src/interfaces/article.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
interface Pagination {
|
||||
page: number;
|
||||
pageSize: number;
|
||||
pageCount: number;
|
||||
total: number;
|
||||
}
|
||||
|
||||
interface Meta {
|
||||
pagination: Pagination;
|
||||
}
|
||||
|
||||
export interface ArticleData {
|
||||
id: number;
|
||||
documentId: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
publishedAt: string;
|
||||
slug: string;
|
||||
title: string;
|
||||
description: string;
|
||||
content: string;
|
||||
image: string | null;
|
||||
}
|
||||
|
||||
export interface ArticleResponse {
|
||||
data: ArticleData[];
|
||||
meta: Meta;
|
||||
}
|
||||
Reference in New Issue
Block a user