game.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. import request from '@/utils/request'
  2. // 挂出列表
  3. export function getsell(data) {
  4. return request({
  5. url: `/api/sell`,
  6. method: 'get',
  7. data
  8. });
  9. }
  10. // 挂出
  11. export function sellPush(data) {
  12. return request({
  13. url: `/api/sell`,
  14. method: 'post',
  15. data
  16. });
  17. }
  18. // 单个挂出详情
  19. export function getSell(data) {
  20. return request({
  21. url: `/api/sell/${data.id}`,
  22. method: 'get',
  23. data
  24. });
  25. }
  26. // 提交凭证
  27. export function setSellVoucher(data) {
  28. return request({
  29. url: `/api/sell/voucher/${data.id}`,
  30. method: 'post',
  31. data
  32. });
  33. }
  34. // 买入订单
  35. export function sellBuy(data) {
  36. return request({
  37. url: `/api/sell/buy/${data.id}`,
  38. method: 'post',
  39. data
  40. });
  41. }
  42. // 我的买入列表
  43. export function sellBuyMy(data) {
  44. return request({
  45. url: `/api/sell/buy/my`,
  46. method: 'get',
  47. data
  48. });
  49. }
  50. // 我的挂出列表
  51. export function sellMy(data) {
  52. return request({
  53. url: `/api/sell/my`,
  54. method: 'get',
  55. data
  56. });
  57. }
  58. // 实名认证
  59. export function real_check(data) {
  60. return request({
  61. url: `/api/user/real_check`,
  62. method: 'post',
  63. data
  64. });
  65. }
  66. // 余额列表
  67. export function balanceList(data) {
  68. return request({
  69. url: `/api/balance/list/USDT`,
  70. method: 'get',
  71. data
  72. });
  73. }
  74. // 转账
  75. export function trade(data) {
  76. return request({
  77. url: `/api/trade`,
  78. method: 'post',
  79. data
  80. });
  81. }
  82. // 提币
  83. export function cash(data) {
  84. return request({
  85. url: `/api/extract/cash`,
  86. method: 'post',
  87. data
  88. });
  89. }
  90. // 提币计算
  91. export function calculator(data) {
  92. return request({
  93. url: `/api/extract/calculator`,
  94. method: 'post',
  95. data
  96. });
  97. }
  98. // 代币使用记录
  99. export function moneyLog(data) {
  100. return request({
  101. url: `/api/money/log/${data.moneyType}`,
  102. method: 'get',
  103. data
  104. });
  105. }
  106. //取消挂出订单
  107. export function cancelLog(data) {
  108. return request({
  109. url: `/api/sell/${data.id}`,
  110. method: 'post',
  111. data
  112. });
  113. }
  114. //查看凭证确认订单
  115. export function comfirLog(data) {
  116. return request({
  117. url: `/api/sell/check/${data.id}`,
  118. method: 'post',
  119. data
  120. });
  121. }
  122. //充值接口
  123. export function rechargeUSDT(data) {
  124. return request({
  125. url: `/api/recharge`,
  126. method: 'post',
  127. data
  128. });
  129. }