import request from '@/utils/request'

//获取主机列表
export const getHostList = (params) => request.basic.get('/api/v1/power-hosts', params)

//获取算力卡列表
export const getCardsList = (params) => request.basic.get('/api/v1/cards', params)

//获取算力中心列表
export const getCentersList = (params) => request.basic.get('/api/v1/centers', params)


//获取单个banner
export const getBanner = (id) => request.basic.get(`/api/v1/banners/${id}`)
//创建banner
export const createBanner = (data) => request.basic.post('/api/v1/banners', data)
//更新banner
export const updateBanner = (id, data) => request.basic.put(`/api/v1/banners/${id}`, data)
//删除banner
export const deleteBanner = (id) => request.basic.delete(`/api/v1/banners/${id}`)