feat(album): add cover picture functionality to albums and enhance album management API

This commit is contained in:
shiyu
2025-06-09 15:12:50 +08:00
parent 9d9393f9ce
commit e55f311c04
24 changed files with 1496 additions and 251 deletions

View File

@@ -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
}
// 相册图片操作请求