/** * 店铺相关API */ import {http, Method} from '@/utils/request.js'; /** * 获取店铺列表 * @param params */ export function getStoreList(params) { return http.request({ url: '/store/store', method: Method.GET, params, }); } /** * 获取店铺基本信息 * @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, }); } /** * 获取自提点信息 * @param id */ export function getStoreAddress(storeId,params) { return http.request({ url: `/store/address/page/${storeId}`, method: Method.GET, params }); } /** * 获取物流模板 * */ export function getFreightTemplate() { return http.request({ url: `/store/store/freightTemplate`, method: Method.GET }); } /** * 获取计量单位 * */ export function getGoodsUnit(param) { return http.request({ url: `/store/store/goods/unit`, method: Method.GET, param: param }); } /** * 发布商品 * */ export function createGoods(data) { return http.request({ url: `/store/store/goods/create`, method: Method.POST, data: data }); }