import { publicRequest } from '@/utils/request' /** * 获取监控点列表 */ export const getMonitorTypeList = (data) => { return publicRequest({ url: `/waterMonitoryPointType/search`, method: 'post', data }); } /** * 创建监控点 */ export const createMonitor = (data) => { return publicRequest({ url: '/waterMonitoryPointType/create', method: 'post', data }) } /** * 修改监控点 */ export const updateMonitor = (data) => { return publicRequest({ url: '/waterMonitoryPointType/modify', method: 'post', data }) } /** * 查询单个监控点 */ export const getSingleMonitor = () => { return publicRequest({ url: `/waterMonitoryPointType/get/${id}`, method: 'get' }) }