矿机租赁系统代码更新
This commit is contained in:
62
power_leasing/src/api/machine.js
Normal file
62
power_leasing/src/api/machine.js
Normal file
@@ -0,0 +1,62 @@
|
||||
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
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user