companyVoiceConfig.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import request from '@/utils/request'
  2. // 查询呼叫频率配置列表
  3. export function listCompanyVoiceConfig(query) {
  4. return request({
  5. url: '/company/companyVoiceConfig/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询呼叫频率配置详细
  11. export function getCompanyVoiceConfig(configId) {
  12. return request({
  13. url: '/company/companyVoiceConfig/' + configId,
  14. method: 'get'
  15. })
  16. }
  17. // 新增呼叫频率配置
  18. export function addCompanyVoiceConfig(data) {
  19. return request({
  20. url: '/company/companyVoiceConfig',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改呼叫频率配置
  26. export function updateCompanyVoiceConfig(data) {
  27. return request({
  28. url: '/company/companyVoiceConfig',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除呼叫频率配置
  34. export function delCompanyVoiceConfig(configId) {
  35. return request({
  36. url: '/company/companyVoiceConfig/' + configId,
  37. method: 'delete'
  38. })
  39. }
  40. // 导出呼叫频率配置
  41. export function exportCompanyVoiceConfig(query) {
  42. return request({
  43. url: '/company/companyVoiceConfig/export',
  44. method: 'get',
  45. params: query
  46. })
  47. }