homeArticle.js 809 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { requestApi } from '../util/network'
  2. // 系统文章
  3. export const getDocumentInfo =
  4. (type) =>
  5. requestApi(
  6. '/Document/agreement',
  7. 'GET',
  8. {
  9. type: type
  10. }
  11. )
  12. // 获取文章分类
  13. export const getArticleclassList =
  14. () =>
  15. requestApi(
  16. '/Articleclass/index',
  17. 'GET',
  18. {
  19. }
  20. )
  21. // 获取文章列表
  22. export const getArticleList =
  23. (params, acId) =>
  24. requestApi(
  25. '/Article/article_list',
  26. 'GET',
  27. {
  28. 'ac_id': acId,
  29. 'page': params.page // 当前第几页
  30. }
  31. )
  32. // 获取文章详情
  33. export const getArticleDetail =
  34. (articleID) =>
  35. requestApi(
  36. '/Article/article_show',
  37. 'GET',
  38. {
  39. 'article_id': articleID
  40. }
  41. )