statistics.js 448 B

12345678910111213141516171819202122
  1. /**
  2. * 博客统计信息
  3. * @see https://api.halo.run/content-api.html#tag/statistic-controller
  4. */
  5. import HttpHandler from '@/common/http/request.js'
  6. export default {
  7. /**
  8. * 获取博客统计信息
  9. */
  10. getBlogStatistics: () => {
  11. return HttpHandler.Get(`/api/content/statistics`)
  12. },
  13. /**
  14. * 获取博客统计信息和用户信息
  15. */
  16. getBlogStatisticsWithUser: () => {
  17. return HttpHandler.Get(`/api/content/statistics/user`)
  18. },
  19. }