Files
pj_h5_cloud/src/sheep/api/food.ts
T
2025-05-15 18:03:56 +08:00

46 lines
894 B
TypeScript

import request from "@/sheep/utils/request"
export default {
page: (data: any) =>
request({
url: `/canteen/canteenDailyMenu/app/page`,
method: "POST",
data,
params: {
current: data.current,
size: data.size,
},
}),
classify: (params: any) =>
request({
url: `/canteen/canteenOnlineCategory/app/getAllSimple`,
method: "GET",
params,
}),
product: (params: any) =>
request({
url: `/canteen/canteenOnlineSpu/app/getCanteenSpuList`,
method: "GET",
params,
}),
getShopCar: (params: any) =>
request({
url: `/hard/hard-car/app/mch-detail`,
method: "GET",
params,
}),
updateShopCar: (data: any) =>
request({
url: `/hard/hard-car/app/save-or-upload`,
method: "POST",
data,
}),
checkSpuStock: (params) => {
return request({
url: "/canteen/canteenOnlineSpu/app/checkSpuStock",
method: "GET",
params,
})
},
}