user.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. import request from '@/utils/request'
  2. // 首页用户统计
  3. export function indexStatics(query) {
  4. return request({
  5. url: '/business/tran_record/count',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询app用户列表
  11. export function listUser(query) {
  12. return request({
  13. url: '/business/user/list',
  14. method: 'get',
  15. params: query
  16. })
  17. }
  18. // 查询上级推荐人列表
  19. export function userDetail(query) {
  20. return request({
  21. url: '/business/agent/userDetail',
  22. method: 'get',
  23. params: query
  24. })
  25. }
  26. // 查询上级推荐人列表
  27. export function liveCommission(query) {
  28. return request({
  29. url: '/business/user/liveCommission',
  30. method: 'get',
  31. params: query
  32. })
  33. }
  34. // 查询上级推荐人列表
  35. export function getGift(query) {
  36. return request({
  37. url: '/business/user/getGift',
  38. method: 'get',
  39. params: query
  40. })
  41. }
  42. // 查询app用户列表
  43. export function channelList() {
  44. return request({
  45. url: '/business/channel/allList',
  46. method: 'get',
  47. // params: query
  48. })
  49. }
  50. // 查询app用户详细
  51. export function getUser(userid) {
  52. return request({
  53. url: '/business/user/' + userid,
  54. method: 'get'
  55. })
  56. }
  57. // 新增app用户
  58. export function addUser(data) {
  59. return request({
  60. url: '/business/user',
  61. method: 'post',
  62. data: data
  63. })
  64. }
  65. // 修改app用户
  66. export function updateUser(data) {
  67. return request({
  68. url: '/business/user',
  69. method: 'put',
  70. data: data
  71. })
  72. }
  73. // 修改app用户代理设置
  74. export function updateUserAgent(data) {
  75. return request({
  76. url: '/business/agent/updateSetting',
  77. method: 'post',
  78. data: data
  79. })
  80. }
  81. // 修改app用户游戏返佣设置
  82. export function updateGameCommissionAgent(data) {
  83. return request({
  84. url: '/business/commission/updateSetting',
  85. method: 'post',
  86. data: data
  87. })
  88. }
  89. // 删除app用户
  90. export function delUser(userid) {
  91. return request({
  92. url: '/business/user/' + userid,
  93. method: 'delete'
  94. })
  95. }
  96. // 重置密码
  97. export function resetUser(data) {
  98. return request({
  99. url: '/business/user/restPwd',
  100. method: 'post',
  101. data: data
  102. })
  103. }
  104. // 重置支付密码
  105. export function restPayPwd(data) {
  106. return request({
  107. url: '/business/user/restPayPwd',
  108. method: 'post',
  109. data: data
  110. })
  111. }
  112. // 充值
  113. export function userCharge(data) {
  114. return request({
  115. url: '/business/user/charge',
  116. method: 'post',
  117. data: data
  118. })
  119. }
  120. // 补足提现流水
  121. export function withdraw(data) {
  122. return request({
  123. url: '/business/user/withdraw',
  124. method: 'post',
  125. data: data
  126. })
  127. }
  128. // 开关播
  129. export function openLive(data) {
  130. return request({
  131. url: '/business/user/openLive',
  132. method: 'post',
  133. data: data
  134. })
  135. }