export type IFoodSegment = 'recipe' | 'daily' | 'timeline' /** * 食材信息 */ export interface IMaterial { type: string; name: string; amount: string; } /** * 步骤信息 */ export interface IStep { sort: number; content: string; imageUrl: string; } /** * 成果信息 */ export interface IRecord { id: number; name: string; category: string; person: number; date: string; imageUrl: string; } /** * 菜谱信息 */ export interface IRecipe { id?: number; /** * 美食名称 */ name: string; /** * 美食菜系 */ category: string; /** * 推荐指数 */ recommendRate: number; /** * 备注 */ remark: string; /** * 食材 */ materialList: IMaterial[]; /** * 步骤 */ stepList: IStep[]; /** * 成果 */ recordList: IRecord[]; } /** * 统计信息 */ export interface IStats { recipeCount: number; categoryCount: number; workCount: number; } export interface IFoodQuery { category: string; } export interface IComment { id: number; username: string; avatar: string; content: string; date: string; } export interface IMoment { id?: number; username?: string; avatar?: string; content: string; date?: string; commentList?: IComment[]; }