import axios from '@/utils/request' // 获取平台运行监控分页 export const getPlatforms = (params) => { return axios({ url: "/platform/page", method: "GET", params: params }) } // 获取平台运行监控列表 export const getPlatformList = () => { return axios({ url: "/platform/list", method: "GET" }) } // 通过id获取平台运行监控 export const getPlatformById = (params) => { return axios({ url: "/platform/" + params, method: "GET" }) } // 通过id删除平台运行监控 export const deletePlatformById = (params) => { return axios({ url: "/platform/" + params, method: "DELETE" }) } // 批量删除平台运行监控 export const deletePlatformByIds = (params) => { return axios({ url: "/platform/batch", method: "DELETE", data: params }) } // 修改平台运行监控 export const editPlatform = (params) => { return axios({ url: "/platform", method: "PUT", data: params }) } // 添加平台运行监控 export const addPlatform = (params) => { return axios({ url: "/platform", method: "POST", data: params }) }