companyVoiceApi.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import request from '@/utils/request'
  2. // 查询呼叫接口列表
  3. export function listCompanyVoiceApi(query) {
  4. return request({
  5. url: '/company/companyVoiceApi/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. export function getVoiceApiList() {
  11. return request({
  12. url: '/company/companyVoiceApi/getVoiceApiList',
  13. method: 'get'
  14. })
  15. }
  16. // 查询呼叫接口详细
  17. export function getCompanyVoiceApi(apiId) {
  18. return request({
  19. url: '/company/companyVoiceApi/' + apiId,
  20. method: 'get'
  21. })
  22. }
  23. // 新增呼叫接口
  24. export function addCompanyVoiceApi(data) {
  25. return request({
  26. url: '/company/companyVoiceApi',
  27. method: 'post',
  28. data: data
  29. })
  30. }
  31. // 修改呼叫接口
  32. export function updateCompanyVoiceApi(data) {
  33. return request({
  34. url: '/company/companyVoiceApi',
  35. method: 'put',
  36. data: data
  37. })
  38. }
  39. // 删除呼叫接口
  40. export function delCompanyVoiceApi(apiId) {
  41. return request({
  42. url: '/company/companyVoiceApi/' + apiId,
  43. method: 'delete'
  44. })
  45. }
  46. // 导出呼叫接口
  47. export function exportCompanyVoiceApi(query) {
  48. return request({
  49. url: '/company/companyVoiceApi/export',
  50. method: 'get',
  51. params: query
  52. })
  53. }