优化
This commit is contained in:
@@ -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"
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user