import {axios} from '../utils/request' import {STORE_MODULE} from './_prefix' // 创建商店 export const createStore = payload => { return axios.post(`${STORE_MODULE}/create`, payload) .then(res => { return res; }) } // 获取全部商店 export const getAllStore = payload => { return axios.get(`${STORE_MODULE}/all`, payload) .then(res => { return res; }) } // 获取指定商店 export const getStoreById = storeId => { return axios.get(`${STORE_MODULE}/?id=${storeId}`) .then(res => { return res; }) }