companyVoiceMobile.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import request from '@/utils/request'
  2. // 查询中间号列表
  3. export function listCompanyVoiceMobile(query) {
  4. return request({
  5. url: '/company/companyVoiceMobile/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询中间号详细
  11. export function getCompanyVoiceMobile(mobileId) {
  12. return request({
  13. url: '/company/companyVoiceMobile/' + mobileId,
  14. method: 'get'
  15. })
  16. }
  17. // 新增中间号
  18. export function addCompanyVoiceMobile(data) {
  19. return request({
  20. url: '/company/companyVoiceMobile',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改中间号
  26. export function updateCompanyVoiceMobile(data) {
  27. return request({
  28. url: '/company/companyVoiceMobile',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除中间号
  34. export function delCompanyVoiceMobile(mobileId) {
  35. return request({
  36. url: '/company/companyVoiceMobile/' + mobileId,
  37. method: 'delete'
  38. })
  39. }
  40. // 导出中间号
  41. export function exportCompanyVoiceMobile(query) {
  42. return request({
  43. url: '/company/companyVoiceMobile/export',
  44. method: 'get',
  45. params: query
  46. })
  47. }
  48. // 下载用户导入模板
  49. export function importTemplate() {
  50. return request({
  51. url: '/company/companyVoiceMobile/importTemplate',
  52. method: 'get'
  53. })
  54. }