- Add CoverAssetId FK and CoverAsset navigation to Album model - Add AlbumAssetPreviewDto with resolution/thumbnail info - Extend AlbumPreviewDto/FullDto with PersonName, CoverAssetId, AssetCount - Add CoverAssetId to AlbumCreateDto and AlbumUpdateDto - Update AlbumMapper to populate new fields from eager-loaded relations - Add EF migration for CoverAssetId column
15 lines
502 B
C#
15 lines
502 B
C#
namespace Butter.Dtos.Album;
|
|
|
|
/// <summary>
|
|
/// Represents the full details of an album, including its associated assets.
|
|
/// </summary>
|
|
public class AlbumFullDto : AlbumPreviewDto {
|
|
/// <summary>
|
|
/// Gets or sets the list of asset IDs in the album.
|
|
/// </summary>
|
|
public List<Guid> Images { get; set; } = [];
|
|
/// <summary>
|
|
/// Gets or sets the asset preview information for rendering.
|
|
/// </summary>
|
|
public List<AlbumAssetPreviewDto> AssetPreviews { get; set; } = [];
|
|
} |