import {request} from './ajax.js' const commonUrl = '/api/contract/' // 获取sts export const getInvestData = (data) => request(commonUrl + 'invest', 'post', { ...data }) export const setInvest = (data) => request(commonUrl + 'add-invest', 'post', { ...data }) export const getEarnings = (data) => request(commonUrl + 'earnings', 'post', { ...data }) export const getContractList = (data) => request(commonUrl + 'contracts', 'post', { ...data })