pnkx-admin-mongo/pnkx-uniapp/api/px/blog/photo.js
2024-01-13 13:29:20 +08:00

64 lines
1.1 KiB
JavaScript

import request from '@/utils/request'
// 查询相册列表
export function getAlbumList(data) {
return request({
url: '/admin/photo/getAlbumList',
method: 'post',
data: data
})
}
// 查询相册列表
export function listPhoto(query) {
return request({
url: '/admin/photo/list',
method: 'get',
params: query
})
}
// 查询相册详细
export function getPhoto(id) {
return request({
url: '/admin/photo/' + id,
method: 'get'
})
}
// 新增相册
export function addPhoto(data) {
return request({
url: '/admin/photo',
method: 'post',
data: data
})
}
// 修改相册
export function updatePhoto(data) {
return request({
url: '/admin/photo',
method: 'put',
data: data
})
}
// 删除相册
export function delPhoto(id) {
return request({
url: '/admin/photo/' + id,
method: 'delete'
})
}
// 导出相册
export function exportPhoto(query) {
return request({
url: '/admin/photo/export',
method: 'get',
params: query
})
}