Commit 7a0740ff authored by 靳野's avatar 靳野

feat:替换接口

parent f99aeef3
......@@ -16,7 +16,7 @@ const headers = {
* yapi: http://yapi.quantgroups.com/project/389/interface/api/23814
*/
export async function searchList(params) {
return request.post('/product/api/merchant/page', {
return request.post('/api/merchants/products/page', {
prefix: goodsApi,
data: stringify(params),
headers,
......@@ -69,7 +69,7 @@ export async function spuDetail(params) {
// 商品规格
export async function getSpecList() {
return request.post('/product/spec/api/merchant/list', {
return request.post('/api/merchants/specs/getAll', {
prefix: goodsApi,
});
}
......@@ -85,7 +85,7 @@ export async function getImageInfo(spuNo) {
// 商品分类
export async function categoryList() {
return request.post('/product/category/api/merchant/getAll', {
return request.post('/api/merchants/categories/getAllTree', {
prefix: goodsApi,
});
}
......@@ -113,7 +113,7 @@ export async function uploadFile(file) {
// 商品修改日志
export async function changeLog(params) {
return request.post('/product/logs/api/merchant/page', {
return request.post('/api/merchant/change/logs/page', {
data: stringify(params),
prefix: goodsApi,
headers,
......@@ -122,7 +122,7 @@ export async function changeLog(params) {
// 审核详情日志
export async function productMerchantLog(productId) {
return request.get('/product/api/merchant/auditLog', {
return request.get('/api/merchants/audit/logs/list', {
params: {
productId,
},
......@@ -258,7 +258,7 @@ export const apiQueryLastChangeLog = skuId =>
// 商品上下架
export const apiChangeStateGoods = async params => {
const data = await request.post('/product/api/merchant/pushedOrOffline/batch', {
const data = await request.post('/api/merchants/products/api/merchant/pushedOrOffline/batch', {
data: stringify(params),
prefix: goodsApi,
headers,
......@@ -301,7 +301,7 @@ export async function apiGoodsActionBatch(data) {
}
// 外卖商品列表
export async function apiTakeawayGoods(params) {
return request.post('/product/api/merchant/page', {
return request.post('/api/merchants/products/page', {
prefix: goodsApi,
data: stringify(params),
headers,
......
......@@ -69,7 +69,7 @@ export async function spuDetail(params) {
// 商品规格
export async function getSpecList() {
return request.post('/product/spec/api/merchant/list', {
return request.post('/api/merchants/specs/getAll', {
prefix: goodsApi,
});
}
......@@ -85,7 +85,7 @@ export async function getImageInfo(spuNo) {
// 商品分类
export async function categoryList() {
return request.post('/product/category/api/merchant/getAll', {
return request.post('/api/merchants/categories/getAllTree', {
prefix: goodsApi,
});
}
......@@ -113,7 +113,7 @@ export async function uploadFile(file) {
// 商品修改日志
export async function changeLog(params) {
return request.post('/product/logs/api/merchant/page', {
return request.post('/api/merchant/change/logs/page', {
data: stringify(params),
prefix: goodsApi,
headers,
......@@ -258,7 +258,7 @@ export const apiQueryLastChangeLog = skuId =>
// 商品上下架
export const apiChangeStateGoods = async params => {
const data = await request.post('/product/api/merchant/pushedOrOffline/batch', {
const data = await request.post('/api/merchants/products/api/merchant/pushedOrOffline/batch', {
data: stringify(params),
prefix: goodsApi,
headers,
......
......@@ -19,14 +19,14 @@ export const merchantUpload = async files => {
};
export const getProductDetail = id =>
request.post('/product/api/merchant/detail', {
request.post('/api/merchants/products/detail', {
prefix: goodsApi,
params: { id },
headers,
});
export const merchantCategoryGetAll = () =>
request.post('/product/category/api/merchant/getAll', {
request.post('/api/merchants/categories/getAllTree', {
prefix: goodsApi,
});
......@@ -42,7 +42,7 @@ export const merchantBrandList = () =>
// 获取规格列表
export const merchantSpecList = () =>
request.post('/product/spec/api/merchant/list', {
request.post('/api/merchants/specs/getAll', {
prefix: goodsApi,
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment