43 lines
937 B
JavaScript
43 lines
937 B
JavaScript
|
"use strict";
|
||
|
const sheep_request_index = require("../../request/index.js");
|
||
|
const SpuApi = {
|
||
|
// 获得商品 SPU 列表
|
||
|
getSpuListByIds: (ids) => {
|
||
|
return sheep_request_index.request({
|
||
|
url: "/product/spu/list-by-ids",
|
||
|
method: "GET",
|
||
|
params: { ids },
|
||
|
custom: {
|
||
|
showLoading: false,
|
||
|
showError: false
|
||
|
}
|
||
|
});
|
||
|
},
|
||
|
// 获得商品 SPU 分页
|
||
|
getSpuPage: (params) => {
|
||
|
return sheep_request_index.request({
|
||
|
url: "/product/spu/page",
|
||
|
method: "GET",
|
||
|
params,
|
||
|
custom: {
|
||
|
showLoading: false,
|
||
|
showError: false
|
||
|
}
|
||
|
});
|
||
|
},
|
||
|
// 查询商品
|
||
|
getSpuDetail: (id) => {
|
||
|
return sheep_request_index.request({
|
||
|
url: "/product/spu/get-detail",
|
||
|
method: "GET",
|
||
|
params: { id },
|
||
|
custom: {
|
||
|
showLoading: false,
|
||
|
showError: false
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
};
|
||
|
exports.SpuApi = SpuApi;
|
||
|
//# sourceMappingURL=spu.js.map
|