import request from '@/utils/request' export function mining(data) { return request({ url: '/api/mining', method: 'get', data }); } export function buyMining(data,id) { return request({ url: '/api/mining/'+id, method: 'post', data }); } export function miningIndex(data) { return request({ url: '/api/mining_index', method: 'get', data }); } export function mymining(data) { return request({ url: '/api/my_mining', method: 'get', data }); } export function calculator(data) { return request({ url: '/api/mining_calculator', method: 'get', data }); } export function miningDateils(data,id) { return request({ url: '/api/mining/'+id, method: 'get', data }); }