photo.js 635 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * 图库接口
  3. * @see https://api.halo.run/content-api.html#tag/photo-controller
  4. */
  5. import HttpHandler from '@/common/http/request.js'
  6. export default {
  7. /**
  8. * 获取图库列表(分页查询)
  9. * @param {Object} params 参数
  10. */
  11. getPhotoListByPage: (params) => {
  12. return HttpHandler.Get(`/api/content/photos`, params)
  13. },
  14. /**
  15. * 获取图库列表(最新)
  16. * @param {Object} params 参数
  17. */
  18. getPhotoList: (params) => {
  19. return HttpHandler.Get(`/api/content/photos/latest`, params)
  20. },
  21. /**
  22. * 获取图库分组
  23. */
  24. getPhotoTeams: () => {
  25. return HttpHandler.Get(`/api/content/photos/teams`)
  26. },
  27. }