mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-07-12 16:03:27 +08:00
feat(album): add cover picture functionality to albums and enhance album management API
This commit is contained in:
@@ -5,18 +5,21 @@ export interface AlbumResponse {
|
||||
id: number;
|
||||
name: string;
|
||||
description: string;
|
||||
coverImageUrl?: string;
|
||||
pictureCount: number;
|
||||
userId: number;
|
||||
username?: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
coverPictureId?: number | null;
|
||||
coverPicturePath?: string;
|
||||
coverPictureThumbnailPath?: string;
|
||||
}
|
||||
|
||||
// 创建相册请求
|
||||
export interface CreateAlbumRequest {
|
||||
name: string;
|
||||
description: string;
|
||||
coverPictureId?: number | null; // 新增:封面图片ID
|
||||
}
|
||||
|
||||
// 更新相册请求
|
||||
@@ -24,6 +27,7 @@ export interface UpdateAlbumRequest {
|
||||
id: number;
|
||||
name: string;
|
||||
description: string;
|
||||
coverPictureId?: number | null; // 新增:封面图片ID
|
||||
}
|
||||
|
||||
// 相册图片操作请求
|
||||
|
||||
Reference in New Issue
Block a user