28 lines
548 B
TypeScript
28 lines
548 B
TypeScript
import { ResourceOwner } from './ResourceOwner.model';
|
|
import { ImageView } from './ImageView.model';
|
|
|
|
export interface RecipeInfoViews {
|
|
slice: {
|
|
number: number;
|
|
size: number;
|
|
};
|
|
content: Recipe[];
|
|
}
|
|
|
|
export interface RecipeView {
|
|
isOwner: boolean | null;
|
|
isStarred: boolean | null;
|
|
recipe: Recipe;
|
|
}
|
|
|
|
export interface Recipe {
|
|
id: number;
|
|
isPublic: boolean;
|
|
mainImage?: ImageView | null;
|
|
owner: ResourceOwner;
|
|
slug: string;
|
|
starCount: number;
|
|
text: string;
|
|
title: string;
|
|
}
|