This commit is contained in:
2026-01-26 15:53:43 +08:00
parent 50d12de534
commit 6e7eb80715
2 changed files with 25 additions and 11 deletions
@@ -131,12 +131,16 @@ class RemoteRepository constructor(
* @param type 0全部 1餐次
*/
suspend fun getRestInfoFoodsByType(
restId: String = GlobalData.restId,
type: Int = 0,
foodName: String,
pageNum: Int = 1,
pageSize:Int = 100
): ApiResponse<List<FoodInfo>> {
return safeApiCall {
apiService.getRestInfoFoodsByType(foodName = foodName)
apiService.getRestInfoFoodsByType(param = hashMapOf(
"name" to foodName,
"pageNum" to "$pageNum",
"pageSize" to "$pageSize"
))
}
}