companyVoiceDialog.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import request from '@/utils/request'
  2. // 查询AI外呼话术列表
  3. export function listDialog(query) {
  4. return request({
  5. url: '/company/companyVoiceDialog/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询AI外呼话术详细
  11. export function getConfigUrl(id) {
  12. return request({
  13. url: '/company/companyVoiceDialog/getConfigUrl',
  14. method: 'get',
  15. params: {id}
  16. })
  17. }
  18. // 查询AI外呼话术详细
  19. export function getDialog(id) {
  20. return request({
  21. url: '/company/companyVoiceDialog/' + id,
  22. method: 'get'
  23. })
  24. }
  25. // 新增AI外呼话术
  26. export function addDialog(data) {
  27. return request({
  28. url: '/company/companyVoiceDialog',
  29. method: 'post',
  30. data: data
  31. })
  32. }
  33. // 修改AI外呼话术
  34. export function updateDialog(data) {
  35. return request({
  36. url: '/company/companyVoiceDialog',
  37. method: 'put',
  38. data: data
  39. })
  40. }
  41. // 删除AI外呼话术
  42. export function delDialog(id) {
  43. return request({
  44. url: '/company/companyVoiceDialog/' + id,
  45. method: 'delete'
  46. })
  47. }
  48. // 导出AI外呼话术
  49. export function exportDialog(query) {
  50. return request({
  51. url: '/company/companyVoiceDialog/export',
  52. method: 'get',
  53. params: query
  54. })
  55. }