companyVoiceCaller.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 getCompanyVoiceCaller(callerId) {
  12. return request({
  13. url: '/company/companyVoiceCaller/' + callerId,
  14. method: 'get'
  15. })
  16. }
  17. // 新增企业用户坐席
  18. export function addCompanyVoiceCaller(data) {
  19. return request({
  20. url: '/company/companyVoiceCaller',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改企业用户坐席
  26. export function updateCompanyVoiceCaller(data) {
  27. return request({
  28. url: '/company/companyVoiceCaller',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除企业用户坐席
  34. export function delCompanyVoiceCaller(callerId) {
  35. return request({
  36. url: '/company/companyVoiceCaller/' + callerId,
  37. method: 'delete'
  38. })
  39. }
  40. // 导出企业用户坐席
  41. export function exportCompanyVoiceCaller(query) {
  42. return request({
  43. url: '/company/companyVoiceCaller/export',
  44. method: 'get',
  45. params: query
  46. })
  47. }
  48. export function getCallerList() {
  49. return request({
  50. url: '/company/companyVoiceCaller/getCallerList' ,
  51. method: 'get'
  52. })
  53. }
  54. export function bindCallerNo(data) {
  55. return request({
  56. url: '/company/companyVoiceCaller/bindCallerNo',
  57. method: 'post',
  58. data: data
  59. })
  60. }