12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- import request from '@/utils/request'
- // 互娱 游戏列表
- export function getGameList(data) {
- return request({
- url: `/api/game`,
- method: 'get',
- data
- });
- }
- // 互娱 获取当前游戏历史记录
- export function getGame(data,id) {
- return request({
- url: `/api/game/room/${id}`,
- method: 'get',
- data
- });
- }
- // 互娱 游戏k线
- export function gameKline(data,type) {
- return request({
- url: `/api/kline/${type}`,
- method: 'get',
- data
- });
- }
- // 互娱 获取钱包
- export function gameWallet() {
- return request({
- url: `/api/wallet`,
- method: 'get',
- });
- }
- // 互娱 获取交易记录
- export function gameBetList(data) {
- return request({
- url: `/api/game/bet/${data.id}`,
- method: 'get',
- data
- });
- }
- // 互娱 押注
- export function gameBetIn(data) {
- return request({
- url: `/api/game/bet/${data.id}`,
- method: 'post',
- data
- });
- }
- // 互娱 测试
- export function gameTest() {
- return request({
- url: `/api/test`,
- method: 'post',
- });
- }
- // 充值
- export function gamecharge(data) {
- return request({
- url: `/api/charge`,
- method: 'get',
- data
- });
- }
- // 充值完成
- export function gamechargePost(data) {
- return request({
- url: `/api/charge`,
- method: 'post',
- data
- });
- }
|