| 1234567891011121314151617181920212223242526 |
- 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}/`, payload)
- .then(res => {
- return res;
- })
- }
- // 获取指定商店
- export const getStoreById = storeId => {
- return axios.get(`${STORE_MODULE}/?id=${storeId}`)
- .then(res => {
- return res;
- })
- }
|