feat:增加美食朋友圈接口

This commit is contained in:
2025-06-25 16:27:42 +08:00
parent 71c107f2e5
commit eff6078a98
17 changed files with 243 additions and 183 deletions

View File

@@ -3,7 +3,7 @@ export type IFoodSegment = 'recipe' | 'daily' | 'timeline'
/**
* 食材信息
*/
export interface IFoodMaterial {
export interface IMaterial {
type: string;
name: string;
amount: string;
@@ -12,7 +12,7 @@ export interface IFoodMaterial {
/**
* 步骤信息
*/
export interface IFoodStep {
export interface IStep {
sort: number;
content: string;
imageUrl: string;
@@ -21,7 +21,7 @@ export interface IFoodStep {
/**
* 成果信息
*/
export interface IFoodRecord {
export interface IRecord {
id: number;
name: string;
category: string;
@@ -33,7 +33,7 @@ export interface IFoodRecord {
/**
* 菜谱信息
*/
export interface IFoodRecipe {
export interface IRecipe {
id?: number;
/**
* 美食名称
@@ -54,21 +54,21 @@ export interface IFoodRecipe {
/**
* 食材
*/
materialList: IFoodMaterial[];
materialList: IMaterial[];
/**
* 步骤
*/
stepList: IFoodStep[];
stepList: IStep[];
/**
* 成果
*/
recordList: IFoodRecord[];
recordList: IRecord[];
}
/**
* 统计信息
*/
export interface IFoodStats {
export interface IStats {
recipeCount: number;
categoryCount: number;
workCount: number;
@@ -77,3 +77,20 @@ export interface IFoodStats {
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[];
}