Update structure

This commit is contained in:
2026-05-28 20:42:38 +02:00
parent ffa3a73bb8
commit 94bf9c61a3
97 changed files with 164 additions and 137 deletions
@@ -1,13 +0,0 @@
namespace Musify.Application.Contracts.Application
{
public interface IFileData
{
Stream FileStream { get; }
string FileName { get; }
string FileType { get; }
string ContentType { get; }
}
}
@@ -1,4 +1,4 @@
namespace Musify.Application.Contracts.Infrastructure
namespace Musify.Application.Contracts
{
public interface IAudioTranscoderService
{
@@ -1,7 +1,7 @@
using Microsoft.EntityFrameworkCore;
using Musify.Domain.Entities;
namespace Musify.Application.Contracts.Infrastructure
namespace Musify.Application.Contracts
{
public interface IDatabase
{
@@ -1,4 +1,4 @@
namespace Musify.Application.Contracts.Infrastructure
namespace Musify.Application.Contracts
{
public interface IDatabaseTransaction : IAsyncDisposable
{
@@ -1,4 +1,4 @@
namespace Musify.Application.Contracts.Infrastructure
namespace Musify.Application.Contracts
{
public interface IEventBus
{
@@ -1,4 +1,4 @@
namespace Musify.Application.Contracts.Infrastructure
namespace Musify.Application.Contracts
{
public interface IPictureService
{
@@ -1,11 +1,11 @@
namespace Musify.Application.Contracts.Infrastructure
namespace Musify.Application.Contracts
{
public interface IStorageService
{
Task<Stream> GetFileAsync(string bucket, string key, CancellationToken cancellationToken);
// Returns null if the object does not exist
Task<ObjectMetadata?> HeadObjectAsync(string bucket, string key, CancellationToken cancellationToken);
Task<ObjectMetaData?> HeadObjectAsync(string bucket, string key, CancellationToken cancellationToken);
Task<string> GetUrlAsync(string bucket, string key, TimeSpan ExpirationTime, CancellationToken cancellationToken);
@@ -1,4 +0,0 @@
namespace Musify.Application.Contracts.Infrastructure
{
public record ObjectMetadata(string ContentType, long ContentLength);
}
+4
View File
@@ -0,0 +1,4 @@
namespace Musify.Application.Contracts
{
public record ObjectMetaData(string ContentType, long ContentLength);
}