Add and remove tracks from playlists (commands + handlers with ownership checks)

This commit is contained in:
2026-06-01 01:20:17 +02:00
parent 842b1ffd08
commit 7c44e6aa73
4 changed files with 133 additions and 0 deletions
@@ -0,0 +1,8 @@
using Ardalis.Result;
using Mediator;
namespace Musify.Application.PlayLists.Commands
{
public record AddTrackToPlayListCommand(long UserId, Guid PlayListId, Guid TrackId)
: ICommand<Result>;
}
@@ -0,0 +1,8 @@
using Ardalis.Result;
using Mediator;
namespace Musify.Application.PlayLists.Commands
{
public record RemoveTrackFromPlayListCommand(long UserId, Guid PlayListId, Guid TrackId)
: ICommand<Result>;
}