dcc
2024-06-13 3616db170333df7d668c97323344335b52c4153c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
import Axios from "@/utils/http";
 
function listPaymentmethod(data) {
  return Axios.fetch("/api/paymentmethod!list.action", data);
}
 
function deletePaymentmethod(data) {
  return Axios.fetch("/api/paymentmethod!delete.action", data);
}
 
function addPaymentmethod(data) {
  return Axios.fetch("/api/paymentmethod!add.action", data);
}
 
//获得所有资产
//"forex->外汇,commodities->大宗商品,指数/ETF->indices,  A-stocks->A股,  HK-stocks->港股.US-stocks->美股,cryptos->虚拟货币
 
function getAllAssets(data) {
  return Axios.fetch("/api/assets!getAll.action", data);
}
 
// 资产的聚合接口
function getAggregationAssets(data) {
  return Axios.fetch("/api/assets!getAllAggregation.action", data);
}
 
//钱包历史记录
function getWalletHistory(data) {
  return Axios.fetch("/api/wallet/records.action", data);
}
 
//获取永续合约持有仓位列表,没有分页,前端分页
function getOrderList(data) {
  return Axios.fetch("/api/contractOrder!list.action", data);
}
//获取永续合约委托持有仓位列表,没有分页,前端分页
function getOrderApplyList(data) {
  return Axios.fetch("/api/contractApplyOrder!list.action", data);
}
 
//交割合约持有仓位列表
function getFutureList(data) {
  return Axios.fetch("/api/futuresOrder!list.action", data);
}
 
// 现货订单
function getSpotList(data) {
  return Axios.fetch("/api/exchangeapplyorder!list.action", data);
}
 
//钱包列表
function getWalletList(data) {
  return Axios.fetch("/api/wallet/list.action", data);
}
// 获取兑换后币种的数量和手续费
function getFee(data) {
  return Axios.fetch("/api/exchangeapplyorder!buy_and_sell_fee.action", data);
}
 
// 获取兑换的sessiontoken
function getExchangeapplyorderView(data) {
  return Axios.fetch("/api/exchangeapplyorder!view.action", data);
}
 
// 兑换接口
function getTrans(data) {
  return Axios.fetch("/api/exchangeapplyorder!buy_and_sell.action", data);
}
 
//矿池详情
function goMineDetail(data) {
  return Axios.fetch("/api/minerOrder!get.action", data);
}
 
//理财详情
 
function goDetail(data) {
  return Axios.fetch("/api/financeOrder!get.action", data);
}
 
//理财账户列表数据
function listFinanceOrder(data) {
  return Axios.fetch("/api/financeOrder!list.action", data);
}
 
//矿池锁仓列表
function listMinerOrder(data) {
  return Axios.fetch("/api/minerOrder!list.action", data);
}
 
// 理财赎回
function financeOrderOfClose(data) {
  return Axios.fetch("/api/financeOrder!closOrder.action", data);
}
 
// 矿池解锁
function minerOrderOfClose(data) {
  return Axios.fetch("/api/minerOrder!closOrder.action", data);
}
 
function url(url, data) {
  return Axios.fetch(url, data);
}
 
// 链名称
function getChainName(data) {
  return Axios.fetch("api/channelBlockchain!getBlockchainName.action", data);
}
 
// 获取充值说明
function getRechargeTips(data) {
  return Axios.fetch("api/cms!get.action", data);
}
 
// 充值的币种列表
function getRechargeCurrencyList(data) {
  return Axios.fetch("api/c2cOrder/currency", data);
}
 
//获取USD充值session_token
function getUSDRechargeToken(data) {
  return Axios.fetch("api/rechargeBlockchain/rechargeOpen", data);
}
 
//获取银行卡充值session_token post
function getBankRechargeToken(data) {
  return Axios.post("api/c2cOrder/orderOpen", data);
}
 
//提交充值申请 post
function rechargeApply(data) {
  return Axios.fetch("api/rechargeBlockchain/recharge", data);
}
 
//数字货币充值记录   0 初始状态,未知或处理中 1 成功 2 失败
function getCrypotRechargeList(data) {
  return Axios.fetch("api/rechargeBlockchain/list", data);
}
 
//获取c2c订单列表    0未付款/1已付款/2申诉中/3已完成/4已取消/5已超时
function getC2cList(data) {
  return Axios.fetch("api/c2cOrder/list", data);
}
 
//银行卡订单详情  ??????
function getBankOrderDetail(data) {
  return Axios.fetch("api/c2cOrder/get", data);
}
 
//银行卡取消订单 post
function cancelBankOrder(data) {
  return Axios.fetch("api/c2cOrder/orderCancel", data);
}
 
//充值订单详情
function getRechargeOrderDetail(data) {
  return Axios.fetch("api/rechargeBlockchain/get", data);
}
 
//提现订单详情
function getWithdrawOrderDetail(data) {
  return Axios.fetch("api/withdraw/get", data);
}
 
//获取提现session_token
function getWithdrawToken(data) {
  return Axios.fetch("api/withdraw/withdrawOpen", data);
}
 
//提现申请 post
function withdrawApply(data) {
  return Axios.postFormData("api/withdraw/apply", data);
}
 
//提现手续费计算
function getWithdrawFee(data) {
  return Axios.fetch("api/withdraw/fee", data);
}
//数字货币提现记录  0 初始状态,未知或处理中 1 成功 2 失败
function getWithdrawList(data) {
  return Axios.fetch("api/withdraw/list", data);
}
 
//获取我的支付方式
function getMyPaymentMethodList(data) {
  return Axios.fetch("api/paymentMethod/myList", data);
}
 
//充值提现订单提交
function applyOrder(data) {
  return Axios.postFormData("api/c2cOrder/apply", data);
}
 
// 获取余额
function getBalanceUsdt(data) {
  return Axios.fetch("api/wallet/getUsdt", data);
}
 
export default {
  listPaymentmethod,
  deletePaymentmethod,
  addPaymentmethod,
  getAllAssets,
  getWalletHistory,
  getOrderList,
  getOrderApplyList,
  getFutureList,
  getWalletList,
  getFee,
  getExchangeapplyorderView,
  getTrans,
  goMineDetail,
  goDetail,
  listFinanceOrder,
  listMinerOrder,
  financeOrderOfClose,
  minerOrderOfClose,
  url,
  getSpotList,
  getAggregationAssets,
  getChainName,
 
  // 充值
  getRechargeTips,
  getRechargeCurrencyList,
  getUSDRechargeToken,
  rechargeApply,
  getBankRechargeToken,
  getCrypotRechargeList,
  getC2cList,
  getBankOrderDetail,
  cancelBankOrder,
  getRechargeOrderDetail,
 
  // 提现
  getWithdrawToken,
  withdrawApply,
  getWithdrawFee,
  getWithdrawList,
  getWithdrawOrderDetail,
 
  getMyPaymentMethodList,
 
  applyOrder,
  getBalanceUsdt,
};