import { $fysp } from '../index'; export default { /** * 获取区域用户的监测设备和飞羽监管系统、飞羽环境系统的匹配记录 */ fetchDeviceMap(param) { return $fysp.post(`usermap/device`, param).then((res) => res.data); }, /** * 搜索第三方设备 */ searchThirdPartyDevice(areaVo, keyword, page, perPage) { return $fysp .post(`usermap/searchThirdPartyDevice`, areaVo, { params: { keyword, page, perPage } }) .then((res) => res.data); }, insertOrUpdate(areaVo, deviceMap) { return $fysp .post(`usermap/insertOrUpdate`, { first: areaVo, second: deviceMap }) .then((res) => res.data); } };