A lot of changes

This commit is contained in:
2026-05-14 14:32:19 +02:00
parent 7160266763
commit f2febb898e
43 changed files with 2941 additions and 444 deletions
@@ -1,8 +1,6 @@
using Ardalis.Result;
using Mediator;
using Musify.Application.Abstractions.Application;
using Musify.Application.PlayLists.Responses;
using Musify.Domain.Entities;
namespace Musify.Application.PlayLists.Commands
{
@@ -10,22 +8,6 @@ namespace Musify.Application.PlayLists.Commands
Guid UserId,
string Name,
string Description,
IFileData? Picture)
: ICommand<Result<PlayListApplicationResponse>>
{
public static PlayList ToEntity(CreatePlayListCommand command, string originalKey, string smallKey, string mediumKey, string largeKey)
{
return new PlayList
{
UserId = command.UserId,
Name = command.Name,
NormalizedName = command.Name.Trim().ToUpperInvariant(),
Description = command.Description,
OriginalPictureName = originalKey,
SmallPictureName = smallKey,
MediumPictureName = mediumKey,
LargePictureName = largeKey,
};
}
}
string? OriginalPictureName)
: ICommand<Result<PlayListApplicationResponse>>;
}
@@ -0,0 +1,12 @@
using Ardalis.Result;
using Mediator;
using Musify.Application.PlayLists.Responses;
namespace Musify.Application.PlayLists.Commands
{
public record RequestPlayListPictureUploadCommand(
Guid UserId,
string FileType,
string ContentType)
: ICommand<Result<PlayListPictureUploadResponse>>;
}
@@ -1,6 +1,5 @@
using Ardalis.Result;
using Mediator;
using Musify.Application.Abstractions.Application;
using Musify.Application.PlayLists.Responses;
namespace Musify.Application.PlayLists.Commands
@@ -10,6 +9,6 @@ namespace Musify.Application.PlayLists.Commands
Guid PlayListId,
string? NewName,
string? NewDescription,
IFileData? NewPicture)
string? NewOriginalPictureName)
: ICommand<Result<PlayListApplicationResponse>>;
}