/** * GetRecipeCollectionListQuery - 获取食谱收藏列表查询条件 */ type GetRecipeCollectionListQuery = { pageNo?: number; pageSize?: number; }; /** * GetRecipeCollectionListParams - 获取食谱收藏列表请求参数 */ type GetRecipeCollectionListParams = { query: GetRecipeCollectionListQuery; devId: string; }; /** * RecipeInfo - 食谱信息 */ type RecipeInfo = { id: number; mainImg: string; lang: number; langDesc: string; desc: string; cookType: number; extInfo: string; sourceType: number; isMainShow: number; isShowControl: number; isControl: number; name: string; easyLevel: string; easyLevelDesc: string; taste: string; tasteDesc: string; foodType: string; foodTypeDesc: string; gmtCreate: number; gmtModified: number; }; /** * GetRecipeCollectionListResult - 获取食谱收藏列表返回结果 */ type GetRecipeCollectionListResult = { totalCount: number; pageNo: number; pageSize: number; hasNext: boolean; data: RecipeInfo[]; }; /** * GetRecipeCollectionListResponse - 获取食谱收藏列表响应 */ type GetRecipeCollectionListResponse = GetRecipeCollectionListResult; /** * 获取食谱收藏列表 * @param {GetRecipeCollectionListParams} params - 获取食谱收藏列表请求参数 * @returns {Promise} - 获取食谱收藏列表响应的 Promise */ export declare const getRecipeCollectionList: (params: GetRecipeCollectionListParams) => Promise; /** * AddRecipeToFavoritesParams - 添加食谱收藏参数 */ type AddRecipeToFavoritesParams = { menuId: number; devId: string; }; /** * AddRecipeToFavoritesResponse - 添加食谱收藏响应 */ type AddRecipeToFavoritesResponse = boolean; /** * 添加食谱收藏 * @param {AddRecipeToFavoritesParams} params - 添加食谱收藏参数 * @returns {Promise} - 添加食谱收藏结果的 Promise */ export declare const addRecipeToFavorites: (params: AddRecipeToFavoritesParams) => Promise; /** * RemoveRecipeFromFavoritesParams - 取消食谱收藏参数 */ type RemoveRecipeFromFavoritesParams = { menuId: number; devId: string; }; /** * RemoveRecipeFromFavoritesResponse - 取消食谱收藏响应 */ type RemoveRecipeFromFavoritesResponse = boolean; /** * 取消食谱收藏 * @param {RemoveRecipeFromFavoritesParams} params - 取消食谱收藏参数 * @returns {Promise} - 取消食谱收藏结果的 Promise */ export declare const removeRecipeFromFavorites: (params: RemoveRecipeFromFavoritesParams) => Promise; /** * CheckRecipeIsStarredParams - 查询食谱是否收藏参数 */ type CheckRecipeIsStarredParams = { menuId: number; devId: string; }; /** * CheckRecipeIsStarredResponse - 查询食谱是否收藏响应 */ type CheckRecipeIsStarredResponse = { isStar: boolean; }; /** * 查询食谱是否收藏 * @param {CheckRecipeIsStarredParams} params - 查询食谱是否收藏参数 * @returns {Promise} - 查询食谱是否收藏结果的 Promise */ export declare const checkRecipeIsStarred: (params: CheckRecipeIsStarredParams) => Promise; /** * GetRecipeStarCountParams - 查询食谱收藏数量参数 */ type GetRecipeStarCountParams = { devId: string; }; /** * GetRecipeStarCountResponse - 查询食谱收藏数量响应 */ type GetRecipeStarCountResponse = { count: number; }; /** * 查询用户已收藏的食谱数量 * @param {GetRecipeStarCountParams} params - 查询食谱收藏数量参数 * @returns {Promise} - 查询食谱收藏数量结果的 Promise */ export declare const getRecipeStarCount: (params: GetRecipeStarCountParams) => Promise; export {};