gamePayChannel.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. import { request } from "@/utils/request.js";
  2. /**
  3. * 游戏支付渠道 API接口
  4. */
  5. export default {
  6. /**
  7. * 数据列表
  8. * @returns
  9. */
  10. getPageList(params = {}) {
  11. return request({
  12. url: "/v1/center/GamePayChannel/index",
  13. method: "get",
  14. params,
  15. });
  16. },
  17. /**
  18. * 添加数据
  19. * @returns
  20. */
  21. save(params = {}) {
  22. return request({
  23. url: "/v1/center/GamePayChannel/save",
  24. method: "post",
  25. data: params,
  26. });
  27. },
  28. /**
  29. * 更新数据
  30. * @returns
  31. */
  32. update(id, data = {}) {
  33. return request({
  34. url: "/v1/center/GamePayChannel/update?id=" + id,
  35. method: "put",
  36. data,
  37. });
  38. },
  39. /**
  40. * 读取数据
  41. * @returns
  42. */
  43. read(id) {
  44. return request({
  45. url: "/v1/center/GamePayChannel/read?id=" + id,
  46. method: "get",
  47. });
  48. },
  49. /**
  50. * 删除数据
  51. * @returns
  52. */
  53. destroy(data) {
  54. return request({
  55. url: "/v1/center/GamePayChannel/destroy",
  56. method: "delete",
  57. data,
  58. });
  59. },
  60. /**
  61. * 获取支付主体
  62. * @returns
  63. */
  64. getPaySubjectApi() {
  65. return request({
  66. url: "/v1/center/GamePayChannel/getPaySubject",
  67. method: "get",
  68. });
  69. },
  70. };