import request from '@/utils/request'

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

// 算力卡删除
export const deleteCard = (id) => request.basic.delete(`/api/v1/cards/${id}`)

// 下架算力卡
export const editCard = (id, params) => request.basic.put(`/api/v1/cards/${id}`, params)

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

// 编辑算力中心
export const editCeCenter = (id) => request.basic.get(`/api/v1/centers/${id}`)

// 更新算力中心
export const updateCenter = (id, data) => request.basic.put(`/api/v1/centers/${id}`, data)

// 新增算力中心
export const addCenter = (data) => request.basic.post('/api/v1/centers', data)

// 删除算力中心
export const deleteCenter = (id) => request.basic.delete(`/api/v1/centers/${id}`)

