import axios from '../httpDice' export default { /** * 转账EOS * @param {object} data * @param {string} data.transaction_id 充值交易id * @param {number} data.block_num 区块id * @param {string} data.player 用户名 * @param {number} data.amount 充值数量,Eos * 10000 * @param {string} data.appid 项目id */ deposit (data) { return axios.request({ url: 'eos/deposit', method: 'post', needLogin: true, data: data }) }, /** * 提现EOS * @param {Object} data */ withDraw (data) { return axios.request({ url: 'eos/withDraw', method: 'post', needLogin: true, data: data }) }, /** * 获取今天的剩余提现次数 * @param {Object} params * @param {string} params.player 用户名 */ getLeftTimes (params) { return axios.request({ url: 'eos/leftTimes', method: 'get', needLogin: true, params: params }) }, /** * 获取我的余额记录 * @param {Object} params * @param {string} params.appid {sicbo, box} */ getBalanceLog (params) { return axios.request({ url: 'eos/balanceLog', method: 'get', needLogin: true, params: params }) }, /** * 抽奖上报交易信息 * @param {Object} params */ sendLuckTrx (params) { return axios.request({ url: 'eos/luckdrawReport', method: 'post', data: params }) }, /** * 获取抽奖信息 * @param {Object} params */ getLuckInfo (params) { return axios.request({ url: 'eos/luckdrawInfo', method: 'get', params }) }, /** * 提现合约上报交易信息 * @param {Object} params */ sendWithDraw (params) { return axios.request({ url: 'eos/withdrawReport', method: 'post', data: params }) } }