coursePlaySourceConfig.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. import request from '@/utils/request'
  2. export function list(query) {
  3. return request({
  4. url: '/course/playSourceConfig/list',
  5. method: 'get',
  6. params: query
  7. })
  8. }
  9. export function get(id) {
  10. return request({
  11. url: '/course/playSourceConfig/' + id,
  12. method: 'get'
  13. })
  14. }
  15. export function add(data) {
  16. return request({
  17. url: '/course/playSourceConfig',
  18. method: 'post',
  19. data: data
  20. })
  21. }
  22. export function update(data) {
  23. return request({
  24. url: '/course/playSourceConfig',
  25. method: 'put',
  26. data: data
  27. })
  28. }
  29. export function updateBindConfig(data) {
  30. return request({
  31. url: '/course/playSourceConfig/updateBindConfig',
  32. method: 'put',
  33. data: data
  34. })
  35. }
  36. export function updateUnbindConfig(data) {
  37. return request({
  38. url: '/course/playSourceConfig/updateUnbindConfig',
  39. method: 'put',
  40. data: data
  41. })
  42. }
  43. export function del(id) {
  44. return request({
  45. url: '/course/playSourceConfig/' + id,
  46. method: 'delete'
  47. })
  48. }
  49. export function listAll(companyId) {
  50. return request({
  51. url: '/course/playSourceConfig/listAll',
  52. method: 'get',
  53. params: {companyId}
  54. })
  55. }
  56. export function updateAgreementConfig(data) {
  57. return request({
  58. url: '/course/playSourceConfig/updateAgreementConfig',
  59. method: 'post',
  60. data: data
  61. })
  62. }
  63. export function queryAgreementConfig(query) {
  64. return request({
  65. url: '/course/playSourceConfig/queryAgreementConfig',
  66. method: 'get',
  67. params: query
  68. })
  69. }
  70. // 绑定商户
  71. export function bindMerchant(data) {
  72. return request({
  73. url: '/course/playSourceConfig/bindMerchant',
  74. method: 'post',
  75. data: data
  76. })
  77. }