sellerConsult.js 743 B

123456789101112131415161718192021222324252627282930313233343536
  1. import { requestApi } from '../util/network'
  2. // 商品咨询列表
  3. export const getConsultList =
  4. (params) =>
  5. requestApi(
  6. '/sellerconsult/index',
  7. 'POST',
  8. {
  9. page: params.page,
  10. per_page: params.per_page
  11. },
  12. 'seller'
  13. )
  14. // 删除商品咨询
  15. export const delConsult =
  16. (id) =>
  17. requestApi(
  18. '/sellerconsult/drop_consult',
  19. 'POST',
  20. {
  21. id: id
  22. },
  23. 'seller'
  24. )
  25. // 回复商品咨询
  26. export const replyConsult =
  27. (consult_id, content) =>
  28. requestApi(
  29. '/sellerconsult/reply_save',
  30. 'POST',
  31. {
  32. consult_id: consult_id,
  33. content: content
  34. },
  35. 'seller'
  36. )