85 lines
1.5 KiB
JavaScript
85 lines
1.5 KiB
JavaScript
import request from '../utils/request'
|
|
|
|
//新增机器
|
|
export function addSingleOrBatchMachine(data) {
|
|
return request({
|
|
url: `/lease/product/machine/addSingleOrBatchMachine`,
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
|
|
//根据矿机id 删除商品矿机
|
|
export function deleteMachine(data) {
|
|
return request({
|
|
url: `/lease/product/machine/delete`,
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
|
|
//根据挖矿账户获取矿机列表
|
|
export function getUserMachineList(data) {
|
|
return request({
|
|
url: `/lease/product/machine/getUserMachineList`,
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
|
|
|
|
//根据 登录账户 获取挖矿账户及挖矿币种集合
|
|
export function getUserMinersList(data) {
|
|
return request({
|
|
url: `/lease/product/machine/getUserMinersList`,
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
|
|
//编辑矿机 + 矿机上下架
|
|
export function updateMachine(data) {
|
|
return request({
|
|
url: `/lease/product/machine/updateMachine`,
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
|
|
|
|
//获取矿机列表
|
|
export function getMachineListForUpdate(data) {
|
|
return request({
|
|
url: `/lease/product/machine/getMachineListForUpdate`,
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
|
|
//GPU下载客户端
|
|
export function downloadClient() {
|
|
return request({
|
|
url: `/lease/user/downloadClient`,
|
|
method: 'get',
|
|
|
|
})
|
|
}
|
|
|
|
|
|
//卖家页面---新增ASIC矿机
|
|
export function addAsicMachine(data) {
|
|
return request({
|
|
url: `/lease/v2/product/machine/addAsicMachine`,
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
|