server.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. import request from '@/utils/request'
  2. //* ******************** 客服模块 *********************
  3. // 查询客服列表
  4. export function getAllList(data) {
  5. return request({
  6. url: '/customerService/getAll',
  7. method: 'post',
  8. data
  9. })
  10. }
  11. // 添加客服
  12. export function AddService(data) {
  13. return request({
  14. url: '/customerService/save',
  15. method: 'post',
  16. data
  17. })
  18. }
  19. // 删除客服
  20. export function delService(data) {
  21. return request({
  22. url: '/customerService/delete',
  23. method: 'post',
  24. data
  25. })
  26. }
  27. // 编辑客服
  28. export function UpService(data) {
  29. return request({
  30. url: '/customerService/update',
  31. method: 'post',
  32. data
  33. })
  34. }
  35. // 获取客服下的接待员
  36. export function getAllReceptionist(data) {
  37. return request({
  38. url: '/customerService/getAllReceptionist',
  39. method: 'post',
  40. data
  41. })
  42. }
  43. // // 获取接待人部门分类列表
  44. export function getDepartmentList(data) {
  45. return request({
  46. url: '/customerService/getDepartmentList',
  47. method: 'post',
  48. data
  49. })
  50. }
  51. // // 获取接待人部门分类列表
  52. export function getExternalUserList(data) {
  53. return request({
  54. url: '/customerService/getExternalUserList',
  55. method: 'post',
  56. data
  57. })
  58. }
  59. // // 添加接待员
  60. export function saveReceptionist(data) {
  61. return request({
  62. url: '/customerService/saveReceptionist',
  63. method: 'post',
  64. data
  65. })
  66. }
  67. // // 添加接待员
  68. export function deleteReceptionist(data) {
  69. return request({
  70. url: '/customerService/deleteReceptionist',
  71. method: 'post',
  72. data
  73. })
  74. }
  75. // // 获取客服配置
  76. export function getConfig(data) {
  77. return request({
  78. url: '/customerService/getConfig',
  79. method: 'post',
  80. data
  81. })
  82. }
  83. // // 修改客服配置
  84. export function saveOrUpdateConfig(data) {
  85. return request({
  86. url: '/customerService/saveOrUpdateConfig',
  87. method: 'post',
  88. data
  89. })
  90. }
  91. // // 查询是否授权
  92. export function checkAuthState(data) {
  93. return request({
  94. url: '/customerService/checkAuthState',
  95. method: 'post',
  96. data
  97. })
  98. }