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>
18 lines
445 B
C#
18 lines
445 B
C#
#nullable enable
|
|
using ErsatzTV.Core.Domain;
|
|
|
|
namespace ErsatzTV.Core.Api.MediaCollections;
|
|
|
|
public record RerunCollectionResponseModel(
|
|
int Id,
|
|
string Name,
|
|
CollectionType CollectionType,
|
|
int? SelectedId,
|
|
string? SelectedName,
|
|
PlaybackOrder FirstRunPlaybackOrder,
|
|
PlaybackOrder RerunPlaybackOrder);
|
|
|
|
public record PagedRerunCollectionsResponseModel(
|
|
int TotalCount,
|
|
List<RerunCollectionResponseModel> Page);
|