companyVoiceRobotic.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. import request from '@/utils/request'
  2. // 查询机器人外呼任务列表
  3. export function listRobotic(query) {
  4. return request({
  5. url: '/company/companyVoiceRobotic/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询机器人外呼任务列表
  11. export function listAll(query) {
  12. return request({
  13. url: '/company/companyVoiceRobotic/listAll',
  14. method: 'get',
  15. params: query
  16. })
  17. }
  18. // 查询机器人外呼任务列表
  19. export function calleesList(query) {
  20. return request({
  21. url: '/company/companyVoiceRobotic/calleesList',
  22. method: 'get',
  23. params: query
  24. })
  25. }
  26. // 查询机器人外呼任务详细
  27. export function getRobotic(id) {
  28. return request({
  29. url: '/company/companyVoiceRobotic/' + id,
  30. method: 'get'
  31. })
  32. }
  33. // 新增机器人外呼任务
  34. export function addRobotic(data) {
  35. return request({
  36. url: '/company/companyVoiceRobotic',
  37. method: 'post',
  38. data: data
  39. })
  40. }
  41. // 修改机器人外呼任务
  42. export function updateRobotic(data) {
  43. return request({
  44. url: '/company/companyVoiceRobotic',
  45. method: 'put',
  46. data: data
  47. })
  48. }
  49. // 删除机器人外呼任务
  50. export function delRobotic(id) {
  51. return request({
  52. url: '/company/companyVoiceRobotic/' + id,
  53. method: 'delete'
  54. })
  55. }
  56. // 导出机器人外呼任务
  57. export function exportRobotic(query) {
  58. return request({
  59. url: '/company/companyVoiceRobotic/export',
  60. method: 'get',
  61. params: query
  62. })
  63. }
  64. // 导出机器人外呼任务
  65. export function getTypes() {
  66. return request({
  67. url: '/company/companyVoiceRobotic/getTypes',
  68. method: 'get'
  69. })
  70. }
  71. // 导出机器人外呼任务
  72. export function statusList(ids) {
  73. return request({
  74. url: '/company/companyVoiceRobotic/statusList',
  75. method: 'get',
  76. params: {ids}
  77. })
  78. }
  79. // 导出机器人外呼任务
  80. export function startRobotic(taskId) {
  81. return request({
  82. url: '/company/companyVoiceRobotic/startRobotic',
  83. method: 'get',
  84. params: {taskId}
  85. })
  86. }
  87. // 导出机器人外呼任务
  88. export function stopRobotic(taskId) {
  89. return request({
  90. url: '/company/companyVoiceRobotic/stopRobotic',
  91. method: 'get',
  92. params: {taskId}
  93. })
  94. }
  95. // 导出机器人外呼任务
  96. export function companyUserList(params) {
  97. return request({
  98. url: '/company/companyVoiceRobotic/companyUserList',
  99. method: 'get',
  100. params
  101. })
  102. }
  103. // 导出机器人外呼任务
  104. export function wxList(params) {
  105. return request({
  106. url: '/company/companyVoiceRobotic/wxList',
  107. method: 'get',
  108. params
  109. })
  110. }