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
| import Serve from '@/api/serve'
|
| class Mining {
| /**
| * 合约初始化面板数据
| * @param {Object} data
| */
| static getMarketList(data) {
| return Serve.get('/user/machine');
| }
|
| static getMining(data){
| return Serve.get('/user/machine_details',data);
| }
|
| static buyMining(data){
| return Serve.post('/user/machine_buy',data);
| }
|
| static getMyMining(){
| return Serve.get('/user/my_machine');
| }
|
| static getMyEarnings(){
| return Serve.get('/user/machine_earnings');
| }
|
| }
|
| export default Mining;
|
|