50 lines
958 B
TypeScript
50 lines
958 B
TypeScript
import request from "@/sheep/utils/request";
|
|
|
|
export default {
|
|
page: (params: any) =>
|
|
request({
|
|
url: `/food/api/selectTimeFood`,
|
|
method: "GET",
|
|
params,
|
|
custom: {
|
|
showLoading: false,
|
|
},
|
|
}),
|
|
classify: (params: any) =>
|
|
request({
|
|
url: `/onlinefood/category/listFood`,
|
|
method: "GET",
|
|
params,
|
|
custom: {
|
|
showLoading: false,
|
|
},
|
|
}),
|
|
product: (params: any) =>
|
|
request({
|
|
url: `/onlinefood/category/list`,
|
|
method: "GET",
|
|
params,
|
|
custom: {
|
|
showLoading: false,
|
|
},
|
|
}),
|
|
getShopCar: (params: any) =>
|
|
request({
|
|
url: `/hardware/car/get`,
|
|
method: "GET",
|
|
params,
|
|
custom: {
|
|
showLoading: false,
|
|
},
|
|
}),
|
|
updateShopCar: (data: any) =>
|
|
request({
|
|
url: `/hardware/car/save-or-upload`,
|
|
method: "POST",
|
|
data,
|
|
custom: {
|
|
showLoading: false,
|
|
},
|
|
}),
|
|
};
|