business.js 844 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import request from '@/utils/request'
  2. export function listExpress(query) {
  3. return request({
  4. url: '/customer-business/page',
  5. method: 'get',
  6. params: query
  7. })
  8. }
  9. export function createExpress(data) {
  10. return request({
  11. url: '/customer-business/add',
  12. method: 'post',
  13. data
  14. })
  15. }
  16. export function readExpress(data) {
  17. return request({
  18. url: '/customer-business/info',
  19. method: 'get',
  20. data
  21. })
  22. }
  23. export function updateExpress(data) {
  24. return request({
  25. url: '/customer-business/edit',
  26. method: 'post',
  27. data
  28. })
  29. }
  30. export function deleteExpress(query) {
  31. return request({
  32. url: '/customer-business/remove',
  33. method: 'post',
  34. params:query
  35. })
  36. }
  37. export function setState(query) {
  38. return request({
  39. url: '/customer-business/updateStatus',
  40. method: 'post',
  41. params:query
  42. })
  43. }