Ei kuvausta

gambleGameBucket.js 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. import request from '@/utils/request'
  2. export function fetchList(query) {
  3. return request({
  4. url: '/gambleGameBuckets',
  5. method: 'get',
  6. params: {
  7. limit: query.limit,
  8. offset: (query.page - 1) * query.limit,
  9. bookie: query.bookie,
  10. startAt: query.startAt,
  11. endAt: query.endAt
  12. // chipsSort: query.chipsSort,
  13. // updatedSort: query.updatedSort
  14. }
  15. })
  16. }
  17. export function fetchMemberRecords(data, query = { round: 1 }) {
  18. return request({
  19. url: `/gambleGameBuckets/${data.id}/round/${query.round}/memberRecords`,
  20. method: 'get'
  21. })
  22. }
  23. export function fetchDealingRecords(data, query = { round: 1 }) {
  24. return request({
  25. url: `/gambleGameBuckets/${data.id}/round/${query.round}/dealingRecords`,
  26. method: 'get'
  27. })
  28. }
  29. export function fetchDetails(data, query = { round: 1 }) {
  30. return request({
  31. url: `/gambleGameBuckets/${data.id}/round/${query.round}/detail`,
  32. method: 'get'
  33. })
  34. }
  35. export function fetchRoundCount(data) {
  36. return request({
  37. url: `/gambleGameBuckets/${data.id}/roundCount`,
  38. method: 'get'
  39. })
  40. }
  41. export function fetchGameBid(data) {
  42. return request({
  43. url: `/gambleGameBuckets/${data.id}/bidChips`,
  44. method: 'get'
  45. })
  46. }
  47. export function fetchGameBucket(id) {
  48. return request({
  49. url: `/gambleGameBuckets/${id}`,
  50. method: 'get'
  51. })
  52. }
  53. export function fetchRoundRecord(data, query = { round: 1 }) {
  54. return request({
  55. url: `/gambleGameBuckets/${data.id}/round/${query.round}/roundRecord`,
  56. method: 'get'
  57. })
  58. }
  59. export function fetchWagerRecord(data, query = { round: 1 }) {
  60. return request({
  61. url: `/gambleGameBuckets/${data.id}/round/${query.round}/wagerRecord`,
  62. method: 'get'
  63. })
  64. }
  65. export function fetchMemberInfo(data, query = { round: 1 }) {
  66. return request({
  67. url: `/gambleGameBuckets/${data.id}/round/${query.round}/memberInfo`,
  68. method: 'get'
  69. })
  70. }
  71. export function fetchPunishmentRecord(data, query = { round: 1 }) {
  72. return request({
  73. url: `/gambleGameBuckets/${data.id}/round/${query.round}/punishmentRecord`,
  74. method: 'get'
  75. })
  76. }
  77. // export function fetchRoundRecord(data) {
  78. // return request({
  79. // url: `/gambleGameBuckets/${data.id}/initDoor`,
  80. // method: 'get'
  81. // })
  82. // }