/** * CustomRecipeQuery - 自定义食谱列表查询条件 */ type CustomRecipeQuery = { pageNo?: number; pageSize?: number; }; /** * GetCustomRecipeListParams - 自定义食谱列表请求参数 */ type GetCustomRecipeListParams = { query: CustomRecipeQuery; devId: string; }; /** * CustomRecipeInfo - 食谱信息 */ type CustomRecipeInfo = { id: number; mainImgs: string[]; lang: number; langDesc: string; cookType: number; sourceType: number; name: string; gmtCreate: number; gmtModified: number; }; /** * CustomRecipeListResult - 自定义食谱列表返回结果 */ type CustomRecipeListResult = { totalCount: number; pageNo: number; pageSize: number; hasNext: boolean; data: CustomRecipeInfo[]; }; /** * GetCustomRecipeListResponse - 自定义食谱列表响应 */ type GetCustomRecipeListResponse = CustomRecipeListResult; /** * 获取自定义食谱列表 * @param {GetCustomRecipeListParams} params - 自定义食谱列表请求参数 * @returns {Promise} - 自定义食谱列表响应的 Promise */ export declare const getCustomRecipeList: (params: GetCustomRecipeListParams) => Promise; /** * 图文步骤参数 */ type StepInfoParam = { step: number; stepImg?: string; desc: string; }; /** * 烹饪步骤信息参数 */ type CookStepParam = { step: number; stepImg?: string; desc?: string; finishCtrl: string; cookArgs: CookArg[]; }; /** * 烹饪参数 */ type CookArg = { dpCode: string; dpValue: string; }; type CustomPropertiesItem = { bizCode: string; name: string; desc: string; fileUrl: string; bizOrder: number; }; /** * 自定义食谱信息 */ type MenuCustomInfo = { mainImages: string[]; name: string; desc?: string; productGroupId: string; isPublish?: number; cookType: number; foods?: string; information?: string; xyxk?: string; cookTime?: number; stepInfoParams: StepInfoParam[]; cookStepParams: CookStepParam[]; customProperties?: CustomPropertiesItem[]; }; /** * AddCustomRecipeParams - 自定义食谱添加请求参数 */ type AddCustomRecipeParams = { menuCustom: MenuCustomInfo; devId: string; }; /** * AddCustomRecipeResponse - 自定义食谱添加响应 */ type AddCustomRecipeResponse = boolean; /** * 自定义食谱添加 * @param {AddCustomRecipeParams} params - 自定义食谱添加请求参数 * @returns {Promise} - 自定义食谱添加响应的 Promise */ export declare const addCustomRecipe: (params: AddCustomRecipeParams) => Promise; /** * 图文步骤参数 */ type UpdateStepInfoParam = { step: number; stepImg?: string; desc: string; }; /** * 烹饪步骤信息参数 */ type UpdateCookStepParam = { step: number; stepImg?: string; desc?: string; finishCtrl: string; cookArgs: CookArg[]; }; /** * 自定义食谱信息 */ type UpdateMenuCustomInfo = { id: number; mainImages: string[]; name: string; desc?: string; productGroupId: string; isPublish?: number; cookType: number; foods?: string; information?: string; xyxk?: string; cookTime?: number; stepInfoParams: UpdateStepInfoParam[]; cookStepParams: UpdateCookStepParam[]; customProperties?: CustomPropertiesItem[]; }; /** * UpdateCustomRecipeParams - 自定义食谱更新请求参数 */ type UpdateCustomRecipeParams = { menuCustom: UpdateMenuCustomInfo; devId: string; }; /** * UpdateCustomRecipeResponse - 自定义食谱更新响应 */ type UpdateCustomRecipeResponse = boolean; /** * 自定义食谱更新 * @param {UpdateCustomRecipeParams} params - 自定义食谱更新请求参数 * @returns {Promise} - 自定义食谱更新响应的 Promise */ export declare const updateCustomRecipe: (params: UpdateCustomRecipeParams) => Promise; /** * DeleteCustomRecipeParams - 自定义食谱删除请求参数 */ type DeleteCustomRecipeParams = { menuId: number; }; /** * DeleteCustomRecipeResponse - 自定义食谱删除响应 */ type DeleteCustomRecipeResponse = boolean; /** * 删除自定义食谱 * @param {DeleteCustomRecipeParams} params - 自定义食谱删除请求参数 * @returns {Promise} - 自定义食谱删除响应的 Promise */ export declare const deleteCustomRecipe: (params: DeleteCustomRecipeParams) => Promise; export {};