contract.js 449 B

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