/**
 *  权限接口
 */
import request from '@/utils/request'
// 获取role列表
export const getPageList = (params) => request.basic.get('/api/v1/power-hosts', params)
// 获取role条数据
export const getPage = (id) => request.basic.get(`/api/v1/power-hosts/${id}`)
// 添加role
export const createPage = (params) => request.basic.post('/api/v1/power-hosts', params)
// 更新role
export const updatePage = (id, params) => request.basic.put(`/api/v1/power-hosts/${id}`, params)
// 删除role
export const delPage = (id) => request.basic.delete(`/api/v1/power-hosts/${id}`)
//获取区域列表
export const getRegionList = (params) => request.basic.get('/api/v1/computing-power-centers/label', params)
//添加算力卡
export const createComputeCard = (params) => request.basic.post('/api/v1/computing-cards', params)
//获取算力卡列表
export const getComputeCardList = (params) => request.basic.get('/api/v1/computing-cards', params)
//删除算力卡
export const delComputeCard = (id) => request.basic.delete(`/api/v1/computing-cards/${id}`)