添加项目文件。

This commit is contained in:
2026-05-09 17:06:30 +08:00
parent c60f5fe117
commit 720ef957d4
378 changed files with 14843 additions and 0 deletions
@@ -0,0 +1,12 @@
using FileService.Application.StorageContracts;
namespace FileService.Application.Ports
{
public interface IObjectStoragePort
{
string ProviderCode { get; }
public Task<InitiateUploadResult> InitUploadAsync(InitiateUploadCommand command,CancellationToken token);
public Task<PresignedUrl> GenerateUploadUrlAsync(GenerateUploadUrlCommand command, CancellationToken token);
public Task<CompleteUploadResult> CompleteUploadAsync(CompleteUploadCommand command, CancellationToken token);
}
}
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FileService.Application.Ports
{
public interface IObjectStorageRouter
{
IObjectStoragePort Route(string providerCode);
}
}
@@ -0,0 +1,12 @@
using FileService.Application.StorageContracts;
namespace FileService.Application.Ports
{
public interface IStorageRedisCache
{
Task SetAsync(UploadRuntimeCache upload);
Task DeleteAsync(string sessionId);
Task DeleteByTaskIdAsync(string taskId);
Task<UploadRuntimeCache?> GetAsync(string sessionId);
}
}