mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-02-22 09:22:01 +00:00
32 lines
480 B
TypeScript
32 lines
480 B
TypeScript
|
export interface Links {
|
||
|
next_page: string | null;
|
||
|
previous_page: string | null;
|
||
|
}
|
||
|
export interface Meta {
|
||
|
total: number;
|
||
|
per_page: number;
|
||
|
current_page: number;
|
||
|
last_page: number;
|
||
|
}
|
||
|
|
||
|
export interface DataResponse<T> {
|
||
|
meta: Meta;
|
||
|
links: Links;
|
||
|
data: T[];
|
||
|
}
|
||
|
|
||
|
export interface Atoll {
|
||
|
id: number;
|
||
|
islands: Island[];
|
||
|
name: string;
|
||
|
createdAt: string;
|
||
|
updatedAt: string;
|
||
|
}
|
||
|
|
||
|
export interface Island {
|
||
|
id: number;
|
||
|
name: string;
|
||
|
createdAt: string;
|
||
|
updatedAt: string;
|
||
|
}
|