|
@@ -3,14 +3,12 @@ import { get, post, delete0 } from '@/utils/request'
|
|
|
const imageApi = {
|
|
const imageApi = {
|
|
|
imageAlbumApi: '/api/content/post/image/album',
|
|
imageAlbumApi: '/api/content/post/image/album',
|
|
|
addAlbumImageApi: '/api/content/post/image/album/add',
|
|
addAlbumImageApi: '/api/content/post/image/album/add',
|
|
|
- deleteAlbumItemApi: '/api/content/album/action',
|
|
|
|
|
updateAlbumScopeApi: '/api/content/post/image/album/update/scope',
|
|
updateAlbumScopeApi: '/api/content/post/image/album/update/scope',
|
|
|
updateAlbumCoverApi: '/api/content/post/image/album/update/cover',
|
|
updateAlbumCoverApi: '/api/content/post/image/album/update/cover',
|
|
|
albumImageApi: '/api/content/post/image/album',
|
|
albumImageApi: '/api/content/post/image/album',
|
|
|
albumApi: '/api/content/image/album',
|
|
albumApi: '/api/content/image/album',
|
|
|
userAlbumApi: '/api/content/image/album/user',
|
|
userAlbumApi: '/api/content/image/album/user',
|
|
|
- imageApi: '/api/content/image',
|
|
|
|
|
- postAlbumApi: '/api/content/album'
|
|
|
|
|
|
|
+ imageApi: '/api/content/image'
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 创建相册
|
|
// 创建相册
|
|
@@ -34,10 +32,6 @@ export function updateAlbumCover(jsonData) {
|
|
|
return post(imageApi.updateAlbumCoverApi, jsonData)
|
|
return post(imageApi.updateAlbumCoverApi, jsonData)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export function deleteAlbumItem(data) {
|
|
|
|
|
- return post(imageApi.deleteAlbumItemApi, data)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
export function deleteAlbum(albumId) {
|
|
export function deleteAlbum(albumId) {
|
|
|
return delete0(imageApi.imageAlbumApi + '/' + albumId)
|
|
return delete0(imageApi.imageAlbumApi + '/' + albumId)
|
|
|
}
|
|
}
|
|
@@ -61,24 +55,6 @@ export function getImages(page) {
|
|
|
return get(imageApi.imageApi + '?page=' + page)
|
|
return get(imageApi.imageApi + '?page=' + page)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// 获取用户合集
|
|
|
|
|
-export function getUserAlbums(page) {
|
|
|
|
|
- return get(imageApi.postAlbumApi + '/user?pn=' + page)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export function getUserAlbums1(query) {
|
|
|
|
|
- return get(imageApi.postAlbumApi + '/user', query)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-// 获取合集内容
|
|
|
|
|
-export function getAlbumItems(page, albumId) {
|
|
|
|
|
- return get(imageApi.postAlbumApi + '/item?pn=' + page + '&albumId=' + albumId)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
export function getImageItems(albumId) {
|
|
export function getImageItems(albumId) {
|
|
|
return get(imageApi.imageApi + '/album/' + albumId)
|
|
return get(imageApi.imageApi + '/album/' + albumId)
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export function getAlbumTypes() {
|
|
|
|
|
- return get(imageApi.postAlbumApi + '/types')
|
|
|
|
|
-}
|
|
|