瑶都万能墙
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
642 B

  1. /**
  2. * 文章相关接口配置
  3. * 对应后端 YaoDuArticleController
  4. */
  5. const api = {
  6. /**
  7. * 获取文章列表
  8. * 对应后端: GET /city/article/list
  9. * @param {String} title - 文章标题搜索关键词
  10. * @param {Object} bean - 分页排序参数 (包含 current, size 等分页信息)
  11. */
  12. articleList: {
  13. url: '/city/article/list',
  14. method: 'GET',
  15. auth: false,
  16. showLoading: false
  17. },
  18. /**
  19. * 根据ID获取文章详情
  20. * 对应后端: GET /city/article/queryById
  21. * @param {String} id - 文章ID
  22. */
  23. articleDetail: {
  24. url: '/city/article/queryById',
  25. method: 'GET',
  26. auth: false,
  27. }
  28. }
  29. export default api