| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- import Serve from '@/api/serve'
- class Wallet {
-
- // 提币记录
- static withdrawalRecord() {
- return Serve.post(`/user/withdrawalRecord`);
- }
- // 充值记录
- static depositHistory() {
- return Serve.post(`/user/depositHistory`);
- }
- // 钱包划转记录
- static transferRecord() {
- return Serve.post(`/user/transferRecord`);
- }
- // 个人资产管理
- static personalAssets() {
- return Serve.post(`/user/personalAssets`);
- }
- // 各个币种的资产
- static fundAccount(data) {
- return Serve.post(`/user/fundAccount`, data);
- }
- // 代币以及对应的余额
- static tokenList(data) {
- return Serve.post(`/user/tokenList`, data);
- }
- // 资金划转
- static fundsTransfer(data) {
- return Serve.post(`/user/appFundsTransfer`, data);
- }
- // 生成充值地址
- static walletImage(data) {
- return Serve.post(`/user/walletImage`, data);
- }
- // 提交充值
- static recharge(data) {
- return Serve.post(`/user/recharge`, data);
- }
- // 信用卡充值
- static xinRecharge(data) {
- return Serve.post(`/back/sendPay`, data);
- }
- // 提交提币
- static withdraw(data) {
- return Serve.post(`/user/withdraw`, data);
- }
- // 提币地址管理
- static getUserWithdrawAdress(data) {
- return Serve.post(`/user/withdrawalAddressManagement`, data);
- }
-
- // 编辑提币地址
- static editUserWithdrawAdress (data) {
- return Serve.post(`/user/editUserAdress`, data);
- }
- // 删除提币地址
- static delUserWithdrawAdress(data) {
- return Serve.post(`/user/withdrawalAddressManagement`, data);
- }
- // 添加提币地址
- static addUserWithdrawAdress(data) {
- return Serve.post(`/`, data);
- }
- static withdrawalSelectAddress() {
- return Serve.post(`/user/withdrawalSelectAddress`);
- }
- static addWithdrawAddress(data) {
- return Serve.post(`/user/withdrawalAddressAdd`, data);
- }
- // 查询币种余额
- static withdrawalBalance(data) {
- return Serve.post(`/user/withdrawalBalance`, data);
- }
- // 修改用户地址
- static withdrawalAddressModify(data) {
- return Serve.post(`/user/withdrawalAddressModify`, data);
- }
- // 删除币种地址
- static withdrawalAddressDeleted(data) {
- return Serve.post(`/user/withdrawalAddressDeleted`, data);
- }
- // 资金余额
- static appTokenAssets(data){
- return Serve.post(`/user/appTokenAssets`,data)
- }
- // 指定币种划转记录
- static appTransferRecord(data){
- return Serve.post(`/user/appTransferRecord`,data)
- }
- // 指定币种提币记录
- static appWithdrawalRecord(data){
- return Serve.post(`/user/appWithdrawalRecord`,data)
- }
- // 指定币种提币记录
- static appDepositHistory(data){
- return Serve.post(`/user/appDepositHistory`,data)
- }
- // 指定币种币币记录
- static getWalletLogs(data){
- return Serve.get(`/user/getWalletLogs`,data)
- }
- // 生成钱包地址
- static createWalletAddress() {
- return Serve.post(`/user/createWalletAddress`);
- }
- // 获取充币地址
- static collectionType(data) {
- return Serve.post(`/user/collectionType`, data)
- }
- // 获取转换列表
- static accounts(data){
- return Serve.get(`/wallet/accounts`, data)
- }
- // 获取子账户类别
- static accountPairList(data){
- return Serve.get('/wallet/accountPairList',data)
- }
- // 获取转换币种列表
- static coinList(data){
- return Serve.get('/wallet/coinList',data)
- }
- // 获取余额
- static getBalance(data){
- return Serve.get('/wallet/getBalance',data)
- }
- // 资金划转
- static transfer(data){
- return Serve.post('/wallet/transfer',data)
- }
- // 合约资金列表
- static accountList(data){
- return Serve.get('/contract/accountList',data)
- }
- // 合约资金流水
- static accountFlow(data){
- return Serve.get('/contract/accountFlow',data)
- }
- // 合约资金流水
- static cancelWithdraw(data){
- return Serve.post('/user/cancelWithdraw',data,{loading:true})
- }
-
- static fundFiat(data) {
- return Serve.post(`/back/fiat`, data);
- }
-
- static getQb(data) {
- return Serve.get(`/coin/code`, data);
- }
- }
- export default Wallet;
|