commu.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import request from '@/common/util/request'
  2. export function commuRecommend(data) { // 社区推荐
  3. return request.get('/article/show_list?type=0', data)
  4. }
  5. export function commuNewest(data) { // 社区最新
  6. return request.get('/article/show_list?type=1', data)
  7. }
  8. export function commuChanglai(data) { // 社区常来
  9. return request.get('/article/show_list?type=2', data)
  10. }
  11. export function changlaiDetail(data) { // 常来微聊详情
  12. return request.get('/article/show_detail', data)
  13. }
  14. export function commuCollect(data) { // 社区收藏
  15. return request.get('/article/mycollection', data)
  16. }
  17. export function commuLike(data) { // 社区点赞收藏
  18. return request.get('/article/like', data)
  19. }
  20. export function GetArticleGroup(data) { // 文章分组
  21. return request.get('/article/GetArticleGroup', data)
  22. }
  23. export function GetArticleDetail(data) { // 文章详情
  24. return request.get('/article/GetArticleDetail', data)
  25. }
  26. export function GetRecomArticle(data) { // 推荐文章
  27. return request.get('/article/GetRecomArticle', data)
  28. }
  29. export function GetArticleList(data) { // 文章列表
  30. return request.get('/article/GetArticleList', data)
  31. }