mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2025-05-19 18:10:15 +09:00
32 lines
635 B
JavaScript
32 lines
635 B
JavaScript
/**
|
|
* 图库接口
|
|
* @see https://api.halo.run/content-api.html#tag/photo-controller
|
|
*/
|
|
|
|
import HttpHandler from '@/common/http/request.js'
|
|
|
|
export default {
|
|
/**
|
|
* 获取图库列表(分页查询)
|
|
* @param {Object} params 参数
|
|
*/
|
|
getPhotoListByPage: (params) => {
|
|
return HttpHandler.Get(`/api/content/photos`, params)
|
|
},
|
|
|
|
/**
|
|
* 获取图库列表(最新)
|
|
* @param {Object} params 参数
|
|
*/
|
|
getPhotoList: (params) => {
|
|
return HttpHandler.Get(`/api/content/photos/latest`, params)
|
|
},
|
|
|
|
/**
|
|
* 获取图库分组
|
|
*/
|
|
getPhotoTeams: () => {
|
|
return HttpHandler.Get(`/api/content/photos/teams`)
|
|
},
|
|
}
|