feat:网点列表展示、启/停用api
This commit is contained in:
@@ -29,6 +29,22 @@ const StoreApi = {
|
||||
}
|
||||
return res;
|
||||
},
|
||||
getStoreListByStoreIds: async (storeIds) => {
|
||||
const res = await request({
|
||||
url: '/trade/store/list-by-store-ids',
|
||||
method: 'GET',
|
||||
params: {
|
||||
storeIds,
|
||||
},
|
||||
custom: {
|
||||
showLoading: false,
|
||||
},
|
||||
});
|
||||
if (res?.code === 0) {
|
||||
res.data = normalizeList(res.data);
|
||||
}
|
||||
return res;
|
||||
},
|
||||
getStoreById: (storeId) => {
|
||||
return request({
|
||||
url: '/trade/store/getStoreById',
|
||||
@@ -41,6 +57,19 @@ const StoreApi = {
|
||||
},
|
||||
});
|
||||
},
|
||||
updateStatus: (storeId, status) => {
|
||||
return request({
|
||||
url: '/trade/store/update-status',
|
||||
method: 'PUT',
|
||||
params: {
|
||||
storeId,
|
||||
status,
|
||||
},
|
||||
custom: {
|
||||
showLoading: false,
|
||||
},
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
export default StoreApi;
|
||||
|
||||
Reference in New Issue
Block a user