companyVoiceCaller.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. import request from '@/utils/request'
  2. // 查询企业用户坐席列表
  3. export function listCompanyVoiceCaller(query) {
  4. return request({
  5. url: '/company/companyVoiceCaller/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询我的企业用户坐席列表
  11. export function getMyCallerApiList(query) {
  12. return request({
  13. url: '/company/companyVoiceCaller/myList',
  14. method: 'get',
  15. params: query
  16. })
  17. }
  18. // 查询企业用户坐席详细
  19. export function getCompanyVoiceCaller(callerId) {
  20. return request({
  21. url: '/company/companyVoiceCaller/' + callerId,
  22. method: 'get'
  23. })
  24. }
  25. // 新增企业用户坐席
  26. export function addCompanyVoiceCaller(data) {
  27. return request({
  28. url: '/company/companyVoiceCaller',
  29. method: 'post',
  30. data: data
  31. })
  32. }
  33. // 修改企业用户坐席
  34. export function updateCompanyVoiceCaller(data) {
  35. return request({
  36. url: '/company/companyVoiceCaller',
  37. method: 'put',
  38. data: data
  39. })
  40. }
  41. // 删除企业用户坐席
  42. export function delCompanyVoiceCaller(callerId) {
  43. return request({
  44. url: '/company/companyVoiceCaller/' + callerId,
  45. method: 'delete'
  46. })
  47. }
  48. // 导出企业用户坐席
  49. export function exportCompanyVoiceCaller(query) {
  50. return request({
  51. url: '/company/companyVoiceCaller/export',
  52. method: 'get',
  53. params: query
  54. })
  55. }
  56. export function getCallerList(query) {
  57. return request({
  58. url: '/company/companyVoiceCaller/getCallerList' ,
  59. method: 'get',
  60. params: query
  61. })
  62. }
  63. export function bindCallerNo(data) {
  64. return request({
  65. url: '/company/companyVoiceCaller/bindCallerNo',
  66. method: 'post',
  67. data: data
  68. })
  69. }