courseRedPacketLog.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. import request from '@/utils/request'
  2. // 查询短链课程看课记录列表
  3. export function listCourseRedPacketLog(query) {
  4. return request({
  5. url: '/course/courseRedPacketLog/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询短链课程看课记录详细
  11. export function getCourseRedPacketLog(logId) {
  12. return request({
  13. url: '/course/courseRedPacketLog/' + logId,
  14. method: 'get'
  15. })
  16. }
  17. // export function courseList() {
  18. // return request({
  19. // url: '/course/courseRedPacketLog//courseList',
  20. // method: 'get',
  21. // })
  22. // }
  23. // export function videoList(id) {
  24. // return request({
  25. // url: '/course/courseRedPacketLog/videoList/' + id,
  26. // method: 'get'
  27. // })
  28. // }
  29. // 新增短链课程看课记录
  30. export function addCourseRedPacketLog(data) {
  31. return request({
  32. url: '/course/courseRedPacketLog',
  33. method: 'post',
  34. data: data
  35. })
  36. }
  37. // 修改短链课程看课记录
  38. export function updateCourseRedPacketLog(data) {
  39. return request({
  40. url: '/course/courseRedPacketLog',
  41. method: 'put',
  42. data: data
  43. })
  44. }
  45. // 删除短链课程看课记录
  46. export function delCourseRedPacketLog(logId) {
  47. return request({
  48. url: '/course/courseRedPacketLog/' + logId,
  49. method: 'delete'
  50. })
  51. }
  52. // 导出短链课程看课记录
  53. export function exportCourseRedPacketLog(query) {
  54. return request({
  55. url: '/course/courseRedPacketLog/export',
  56. method: 'get',
  57. params: query
  58. })
  59. }
  60. /**
  61. * 获取课程列表
  62. * @returns {*}
  63. */
  64. export function courseList(){
  65. return request({
  66. url: '/course/courseTrafficLog/courseList',
  67. method: 'get',
  68. })
  69. }
  70. /**
  71. * 获取课程列表
  72. * @returns {*}
  73. */
  74. export function videoList(id){
  75. return request({
  76. url: '/course/courseTrafficLog/videoList/' + id,
  77. method: 'get',
  78. })
  79. }