companyVoiceCaller.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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(callingId) {
  12. return request({
  13. url: '/company/companyVoiceCaller/' + callingId,
  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(callingId) {
  35. return request({
  36. url: '/company/companyVoiceCaller/' + callingId,
  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. // 下载用户导入模板
  49. export function importTemplate() {
  50. return request({
  51. url: '/company/companyVoiceCaller/importTemplate',
  52. method: 'get'
  53. })
  54. }
  55. export function recover(data) {
  56. return request({
  57. url: '/company/companyVoiceCaller/recover',
  58. method: 'post',
  59. data: data
  60. })
  61. }