2025-03-14 16:27:50 +08:00
|
|
|
/**
|
|
|
|
* 店铺相关API
|
|
|
|
*/
|
|
|
|
|
|
|
|
import {http, Method} from '@/utils/request.js';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取店铺列表
|
|
|
|
* @param params
|
|
|
|
*/
|
|
|
|
export function getStoreList(params) {
|
|
|
|
return http.request({
|
2025-03-24 10:53:42 +08:00
|
|
|
url: '/store/store',
|
2025-03-14 16:27:50 +08:00
|
|
|
method: Method.GET,
|
|
|
|
params,
|
|
|
|
});
|
|
|
|
}
|
2025-04-30 14:42:40 +08:00
|
|
|
/**
|
|
|
|
* 获取店铺列表
|
|
|
|
* @param params
|
|
|
|
*/
|
|
|
|
export function getExpertStoreList(params) {
|
|
|
|
return http.request({
|
|
|
|
url: '/store/store/ExpertStoreList',
|
|
|
|
method: Method.GET,
|
|
|
|
params,
|
|
|
|
});
|
|
|
|
}
|
2025-03-14 16:27:50 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取店铺基本信息
|
|
|
|
* @param storeId
|
|
|
|
*/
|
|
|
|
export function getStoreBaseInfo(storeId) {
|
|
|
|
return http.request({
|
|
|
|
url: `/store/store/get/detail/${storeId}`,
|
|
|
|
method: Method.GET,
|
|
|
|
loading: false,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取店铺分类
|
|
|
|
* @param id
|
|
|
|
*/
|
|
|
|
export function getStoreCategory(id) {
|
|
|
|
return http.request({
|
|
|
|
url: `/store/store/label/get/${id}`,
|
|
|
|
method: Method.GET,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 营业执照
|
|
|
|
* @param id
|
|
|
|
*/
|
|
|
|
export function getLicencePhoto(id) {
|
|
|
|
return http.request({
|
|
|
|
url: `/store/store/get/licencePhoto/${id}`,
|
|
|
|
method: Method.GET,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|