Adds MultiCollectionController + RerunCollectionController (list/get/create/update/ delete) over the existing MediatR handlers, with response/request DTOs, controller + contract tests, regenerated OpenAPI + TS types, and thin SPA api-client modules. SPA editor screens are a follow-up. Rerun request DTO resolves the chosen entity id into the minimal VM the handler reads (documented inline). Refs #151, #152 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
21 lines
511 B
C#
21 lines
511 B
C#
#nullable enable
|
|
using ErsatzTV.Core.Domain;
|
|
|
|
namespace ErsatzTV.Core.Api.MediaCollections;
|
|
|
|
public record MultiCollectionResponseModel(
|
|
int Id,
|
|
string Name,
|
|
List<MultiCollectionItemResponseModel> Items);
|
|
|
|
public record MultiCollectionItemResponseModel(
|
|
int? CollectionId,
|
|
int? SmartCollectionId,
|
|
string Name,
|
|
bool ScheduleAsGroup,
|
|
PlaybackOrder PlaybackOrder);
|
|
|
|
public record PagedMultiCollectionsResponseModel(
|
|
int TotalCount,
|
|
List<MultiCollectionResponseModel> Page);
|