import apiClient from '../../utils/axios' import { AddEmergencyInfo } from '../../types/Index' //添加急诊信息 export const insertEmergency = async (body: AddEmergencyInfo) => { try { console.log('addNew=========',body) const res = await apiClient.post('/api/v1/app/emergencyTube/addNew', body) return res.data } catch (error) { console.log(error) } } //获取急诊信息 export const getEmergency = async () => { try { const res = await apiClient.get('/api/regular/getEmergency') return res.data } catch (error) { console.log(error) } } //判断急诊位置是否存在试管 export const isTubeExist = async () => { try { const res = await apiClient.post( '/api/v1/app/deviceState/getEmergencyTubePosState', ) return res.data } catch (error) { console.log(error) } }