turkmentv_front/models/news.model.ts

91 lines
1.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export interface NewsModel {
data: Datum[];
links: Links;
meta: Meta;
}
export interface Datum {
id: number;
title: string;
slug: string;
excerpt: string;
published_at: string;
type: Type;
awtor: Awtor;
featured_images: FeaturedImage[];
video: string;
categories: Category[];
}
export enum Awtor {
Hhm = 'HHM',
Миц = 'МИЦ',
Ннм = 'ННМ',
}
export interface Category {
id: number;
name: string;
powerseo_title: Powerseo | null;
powerseo_description: Powerseo | null;
powerseo_keywords: Powerseo | null;
}
export enum Powerseo {
Novosti = 'Novosti',
VTurkmenistane = 'V Turkmenistane',
}
export interface FeaturedImage {
id: number;
disk_name: string;
file_name: string;
path: string;
extension: Extension;
}
export enum Extension {
JPEG = 'jpeg',
Jpg = 'jpg',
PNG = 'png',
}
export enum Type {
Photo = 'photo',
Video = 'video',
}
export interface Links {
first: string;
last: string;
prev: null;
next: string;
}
export interface Meta {
current_page: number;
from: number;
last_page: number;
path: string;
per_page: number;
to: number;
total: number;
}
export interface NewsType {
data: Datu[];
}
export interface Datu {
id: number;
title: string;
url: null | string;
image: string;
type: string;
status: number;
description: null;
page_id: null;
created_at: Date;
updated_at: Date;
}