2025-09-26 16:40:38 +08:00
|
|
|
import request from '../utils/request'
|
|
|
|
|
|
|
|
|
|
//钱包余额
|
|
|
|
|
export function getWalletInfo(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: `/lease/user/getWalletInfo`,
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//余额提现
|
|
|
|
|
export function withdrawBalance(data) {
|
2025-10-20 10:15:13 +08:00
|
|
|
return request({
|
|
|
|
|
url: `/lease/user/withdrawBalance`,
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-26 16:40:38 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
//余额充值记录
|
|
|
|
|
export function balanceRechargeList(data) {
|
2025-10-20 10:15:13 +08:00
|
|
|
return request({
|
|
|
|
|
url: `/lease/user/balanceRechargeList`,
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
2025-09-26 16:40:38 +08:00
|
|
|
|
|
|
|
|
|
2025-10-20 10:15:13 +08:00
|
|
|
//提现记录
|
2025-09-26 16:40:38 +08:00
|
|
|
export function balanceWithdrawList(data) {
|
2025-10-20 10:15:13 +08:00
|
|
|
return request({
|
|
|
|
|
url: `/lease/user/balanceWithdrawList`,
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 卖家收款记录
|
|
|
|
|
export function sellerReceiptList(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: `/lease/user/balancePayList`,
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//钱包绑定
|
|
|
|
|
export function addWalletShopConfig(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: `/lease/shop/addShopConfig`,
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//获取支持的链和币种
|
|
|
|
|
export function getChainAndList(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: `/lease/shop/getChainAndList`,
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取钱包绑定列表
|
|
|
|
|
export function getShopConfig(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: `/lease/shop/getShopConfig`,
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//创建钱包
|
|
|
|
|
export function bindWallet(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: `/lease/user/bindWallet`,
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//资金流水
|
|
|
|
|
export function transactionRecord(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: `/lease/user/transactionRecord`,
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//钱包的最近交易
|
|
|
|
|
export function getRecentlyTransaction(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: `/lease/user/getRecentlyTransaction`,
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-07 16:30:03 +08:00
|
|
|
//绑定钱包前查询商品列表
|
|
|
|
|
export function getProductListForShopWalletConfig(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: `/lease/product/getProductListForShopWalletConfig`,
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//设置之前商品列表的新链的机器价格
|
|
|
|
|
export function updateProductListForShopWalletConfig(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: `/lease/product/updateProductListForShopWalletConfig`,
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-10-20 10:15:13 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|