Update structure
This commit is contained in:
@@ -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
-1
@@ -1,4 +1,4 @@
|
||||
namespace Musify.Application.Contracts.Infrastructure
|
||||
namespace Musify.Application.Contracts
|
||||
{
|
||||
public interface IAudioTranscoderService
|
||||
{
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Musify.Domain.Entities;
|
||||
|
||||
namespace Musify.Application.Contracts.Infrastructure
|
||||
namespace Musify.Application.Contracts
|
||||
{
|
||||
public interface IDatabase
|
||||
{
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
namespace Musify.Application.Contracts.Infrastructure
|
||||
namespace Musify.Application.Contracts
|
||||
{
|
||||
public interface IDatabaseTransaction : IAsyncDisposable
|
||||
{
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
namespace Musify.Application.Contracts.Infrastructure
|
||||
namespace Musify.Application.Contracts
|
||||
{
|
||||
public interface IEventBus
|
||||
{
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
namespace Musify.Application.Contracts.Infrastructure
|
||||
namespace Musify.Application.Contracts
|
||||
{
|
||||
public interface IPictureService
|
||||
{
|
||||
+2
-2
@@ -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);
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
namespace Musify.Application.Contracts
|
||||
{
|
||||
public record ObjectMetaData(string ContentType, long ContentLength);
|
||||
}
|
||||
Reference in New Issue
Block a user