liveQuestionLive.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. import request from '@/utils/request'
  2. // 查询直播间题库列表
  3. export function listLiveQuestionLive(query) {
  4. return request({
  5. url: '/live/liveQuestionLive/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询直播间可选题库列表
  11. export function listLiveQuestionOptionList(query) {
  12. return request({
  13. url: '/live/liveQuestionLive/optionList',
  14. method: 'get',
  15. params: query
  16. })
  17. }
  18. // 新增直播间题库
  19. export function addLiveQuestionLive(data) {
  20. return request({
  21. url: '/live/liveQuestionLive',
  22. method: 'post',
  23. params: data
  24. })
  25. }
  26. // 删除直播间题库
  27. export function deleteLiveQuestionLive(data) {
  28. return request({
  29. url: '/live/liveQuestionLive/' + data.liveId,
  30. method: 'delete',
  31. params: {ids: data.ids}
  32. })
  33. }
  34. // 查询直播观看奖励设置列表
  35. export function listConfig(query) {
  36. return request({
  37. url: '/live/config/list',
  38. method: 'get',
  39. params: query
  40. })
  41. }
  42. // 查询直播观看奖励设置详细
  43. export function getConfig(id) {
  44. return request({
  45. url: '/live/config/' + id,
  46. method: 'get'
  47. })
  48. }
  49. // 新增直播观看奖励设置
  50. export function addConfig(data,liveId) {
  51. return request({
  52. url: '/live/config' + '?liveId=' + liveId,
  53. method: 'post',
  54. data: data
  55. })
  56. }
  57. // 修改直播观看奖励设置
  58. export function updateConfig(data,liveId) {
  59. return request({
  60. url: '/live/config' + '?liveId=' + liveId,
  61. method: 'put',
  62. data: data
  63. })
  64. }
  65. // 删除直播观看奖励设置
  66. export function delConfig(id) {
  67. return request({
  68. url: '/live/config/' + id,
  69. method: 'delete'
  70. })
  71. }
  72. // 导出直播观看奖励设置
  73. export function exportConfig(query) {
  74. return request({
  75. url: '/live/config/export',
  76. method: 'get',
  77. params: query
  78. })
  79. }