feat:初始化工程

This commit is contained in:
2026-06-14 22:53:02 +08:00
commit 795c987d9d
63 changed files with 6276 additions and 0 deletions

77
src/types/food.ts Normal file
View File

@@ -0,0 +1,77 @@
/**
* 食材信息
*/
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;
}