78 lines
986 B
TypeScript
78 lines
986 B
TypeScript
/**
|
|
* 食材信息
|
|
*/
|
|
export interface IFoodMaterial {
|
|
type: string;
|
|
name: string;
|
|
amount: string;
|
|
}
|
|
|
|
/**
|
|
* 步骤信息
|
|
*/
|
|
export interface IFoodStep {
|
|
sort: number;
|
|
content: string;
|
|
imageUrl: string;
|
|
}
|
|
|
|
/**
|
|
* 成果信息
|
|
*/
|
|
export interface IFoodRecord {
|
|
id: number;
|
|
name: string;
|
|
category: string;
|
|
date: string;
|
|
person: string;
|
|
imageUrl: string;
|
|
}
|
|
|
|
/**
|
|
* 统计信息
|
|
*/
|
|
export interface IFoodStats {
|
|
recipeCount: number;
|
|
categoryCount: number;
|
|
workCount: number;
|
|
}
|
|
|
|
/**
|
|
* 菜谱信息
|
|
*/
|
|
export interface IFoodRecipe {
|
|
id?: number;
|
|
/**
|
|
* 美食名称
|
|
*/
|
|
name: string;
|
|
/**
|
|
* 美食菜系
|
|
*/
|
|
category: string;
|
|
/**
|
|
* 推荐指数
|
|
*/
|
|
recommendRate: number;
|
|
/**
|
|
* 备注
|
|
*/
|
|
remark: string;
|
|
/**
|
|
* 食材
|
|
*/
|
|
materialList: IFoodMaterial[];
|
|
/**
|
|
* 步骤
|
|
*/
|
|
stepList: IFoodStep[];
|
|
/**
|
|
* 成果
|
|
*/
|
|
recordList: IFoodRecord[];
|
|
}
|
|
|
|
export interface IFoodQuery {
|
|
category: string;
|
|
}
|