| | |
| | | return await request.get({ url: `/ecg/device/get?id=` + id }) |
| | | }, |
| | | |
| | | // 查询设备详情 |
| | | getDeviceByDevId: async (devId: string) => { |
| | | return await request.get({ url: `/ecg/device/get-by-dev-id?dev-id=` + devId }) |
| | | }, |
| | | |
| | | // 新增设备 |
| | | createDevice: async (data: DeviceVO) => { |
| | | return await request.post({ url: `/ecg/device/create`, data }) |
| | |
| | | return await request.put({ url: `/ecg/device/update`, data }) |
| | | }, |
| | | |
| | | // 修改设备状态 |
| | | updateDeviceState: async (data: DeviceVO) => { |
| | | return await request.post({ url: `/ecg/device/update-dev-state`, data }) |
| | | }, |
| | | |
| | | // 删除设备 |
| | | deleteDevice: async (id: number) => { |
| | | return await request.delete({ url: `/ecg/device/delete?id=` + id }) |