coursePlaySourceConfig.js 779 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 del(id) {
  30. return request({
  31. url: '/course/playSourceConfig/' + id,
  32. method: 'delete'
  33. })
  34. }
  35. export function listAll() {
  36. return request({
  37. url: '/course/playSourceConfig/listAll',
  38. method: 'get'
  39. })
  40. }