/**
 *  算力券接口
 */
import request from '@/utils/request'
// 获取列表
export const getPageList = (params) => request.basic.get('/api/v1/vouchers', params)
// 新增
export const addVouchers = (params) => request.basic.post(`/api/v1/vouchers`,params)
// 编辑
export const editeVouchers = (params) => request.basic.put(`/api/v1/vouchers${params.id}`, params)
// 删除
export const deleteVouchers = (id) => request.basic.delete('/api/v1/withdrawList/'+id)

//算力点列表
export const getPointList=(params)=>request.basic.get('/api/v1/points',params)

//新增算力点
export const addPoint=(params)=>request.basic.post('/api/v1/points',params)


//余额列表
export const getBalanceList=(params)=>request.basic.get('/api/v1/balances',params)
//新增余额
export const addBalance=(params)=>request.basic.post('/api/v1/balances',params)

//实例订单
export const getOrderList=(params)=>request.basic.get('/api/v1/orders',params)

