2021-05-13 11:03:32 +08:00
|
|
|
/**
|
|
|
|
* 店铺相关API
|
|
|
|
*/
|
|
|
|
|
|
|
|
import {http, Method} from '@/utils/request.js';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取店铺列表
|
|
|
|
* @param params
|
|
|
|
*/
|
|
|
|
export function getstoreList(params) {
|
|
|
|
return http.request({
|
|
|
|
url: '/store',
|
|
|
|
method: Method.GET,
|
|
|
|
params,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取店铺基本信息
|
|
|
|
* @param storeId
|
|
|
|
*/
|
2021-08-09 18:40:06 +08:00
|
|
|
export function getStoreBaseInfo(storeId) {
|
2021-05-13 11:03:32 +08:00
|
|
|
return http.request({
|
|
|
|
url: `/store/get/detail/${storeId}`,
|
|
|
|
method: Method.GET,
|
|
|
|
loading: false,
|
|
|
|
});
|
2021-08-09 18:40:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取店铺分类
|
|
|
|
* @param id
|
|
|
|
*/
|
|
|
|
export function getStoreCategory(id) {
|
|
|
|
return http.request({
|
|
|
|
url: `/store/label/get/${id}`,
|
|
|
|
method: Method.GET,
|
|
|
|
});
|
|
|
|
}
|