29 lines
454 B
TypeScript
29 lines
454 B
TypeScript
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;
|
|
}
|