25 lines
453 B
JavaScript
25 lines
453 B
JavaScript
import request from '@/utils/request'
|
|
import config from '@/config'
|
|
|
|
const baseUrl = 'http://193.112.94.36:8081'
|
|
|
|
// 添加设备
|
|
export function addDevice(data) {
|
|
return request({
|
|
baseUrl: baseUrl,
|
|
url: '/mall/device/add',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 获取设备列表
|
|
export function getDeviceList(storeId) {
|
|
return request({
|
|
baseUrl: baseUrl,
|
|
url: `/mall/device/getDevice/${storeId}`,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|