import request from '@/utils/request'

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

//获取主机资源列表
export const getHostsList = (params) => request.basic.get('/api/v1/autoDl-dl-hosts', params)

// 获取实例卡列表
export const getInstancesList = (params) => request.basic.get('/api/v1/auto-dl-instances', params)

// 黑名单列表
export const getBlackCustomersList = (params) => request.basic.get('/api/v1/blackCustomers', params)

// 移除黑名单
export const deleteBlackCustomers = (id) => request.basic.delete(`/api/v1/blackCustomers/${id}`)


// 拉黑用户
export const updateCustomers = (id, data) => request.basic.put(`/api/v1/customers/${id}`, data)


//获取单个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}`)