识别图片处理、查询菜品数据
This commit is contained in:
@@ -103,4 +103,16 @@ class RemoteRepository constructor(
|
||||
): ApiResponse<String> {
|
||||
return safeApiCall { apiService.postUserNutritionData(param = param) }
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取菜品信息
|
||||
* @param restId 从device服务获取的canteenId字段
|
||||
* @param foodName 菜品名称,多个使用逗号拼接
|
||||
*/
|
||||
suspend fun getFoodInfo(
|
||||
restId: String = GlobalData.restId,
|
||||
foodName: String,
|
||||
): ApiResponse<List<FoodInfo>> {
|
||||
return safeApiCall { apiService.getFoodInfo(restId = restId, foodName = foodName) }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user