52 lines
923 B
JavaScript
Vendored

import http from "@/util/http.js";
// 店铺管理页面请求
// 店铺平台
export function shopListId() {
return http({
url: "/api/shop_platforms",
method: "get",
});
}
// 店铺新增
export function shopAdd(data) {
return http({
url: "/api/shops",
method: "post",
data,
});
}
// 店铺列表
export function storeList(params) {
return http({
url: "/api/shops",
method: "get",
params,
});
}
// 下载商品
export function downloadGoods(id) {
return http({
url: `/api/download/${id}/goods`,
method: "get",
});
}
export function updateStore(id, params) {
return http({
url: `/api/shops/${id}`,
method: "patch",
params,
});
}
export function syncStoreStock(params) {
return http({
url: '/api/sync/shop/stock',
method: "put",
params,
});
}