sellerTransport.js 981 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import { requestApi } from '../util/network'
  2. // 获取售卖地区
  3. export const getTransportList =
  4. () =>
  5. requestApi(
  6. '/Sellertransport/transport_list',
  7. 'POST',
  8. {
  9. },
  10. 'seller'
  11. )
  12. // 售卖地区编辑
  13. export const editTransport =
  14. (transport_id) =>
  15. requestApi(
  16. '/Sellertransport/edit_transport',
  17. 'POST',
  18. {
  19. transport_id: transport_id
  20. },
  21. 'seller'
  22. )
  23. // 售卖地区保存
  24. export const saveTransport =
  25. (transport, transport_extend) =>
  26. requestApi(
  27. '/Sellertransport/save_transport',
  28. 'POST',
  29. Object.assign(
  30. transport,
  31. { transport_extend: transport_extend }),
  32. 'seller'
  33. )
  34. // 删除售卖地区
  35. export const delTransport =
  36. (transport_id) =>
  37. requestApi(
  38. '/Sellertransport/del_transport',
  39. 'POST',
  40. {
  41. transport_id: transport_id
  42. },
  43. 'seller'
  44. )