customer.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import service from '../utils/axios'
  2. export function getCustomerList(data) {
  3. return service({
  4. url: '/app/user/getCustomerList',
  5. method: 'post',
  6. data
  7. })
  8. }
  9. export function addCustomer(data) {
  10. return service({
  11. url: 'admin/platform/addCustomer',
  12. method: 'post',
  13. data
  14. })
  15. }
  16. export function updateCustomer(data) {
  17. return service({
  18. url: "admin/platform/updateCustomer",
  19. method: "post",
  20. data,
  21. });
  22. }
  23. export function deleteCustomer(data) {
  24. return service({
  25. url: '/customer/delete',
  26. method: 'post',
  27. data
  28. })
  29. }
  30. export function getCustomer(data) {
  31. return service({
  32. url: "/app/user/getCustomer",
  33. method: "post",
  34. data,
  35. });
  36. }
  37. // 获取客户列表
  38. export function getMessUserList(data){
  39. return service({
  40. url: 'admin/platform/customerList',
  41. method: 'post',
  42. data
  43. })
  44. }
  45. // 客户详情
  46. export function deleteMessUser(params){
  47. return service.get('admin/platform/customerInfo', {params})
  48. }