♻️ Extract the Storage service to DysonNetwork.Drive microservice

This commit is contained in:
2025-07-06 17:29:26 +08:00
parent 6a3d04af3d
commit 14b79f16f4
71 changed files with 2629 additions and 346 deletions

View File

@ -1,5 +1,6 @@
using System.Text.RegularExpressions;
using DysonNetwork.Pass.Features.Account;
using DysonNetwork.Common.Interfaces;
using DysonNetwork.Common.Models;
using DysonNetwork.Sphere.Chat.Realtime;
using DysonNetwork.Sphere.Connection;
@ -11,7 +12,7 @@ namespace DysonNetwork.Sphere.Chat;
public partial class ChatService(
AppDatabase db,
FileReferenceService fileRefService,
IFileReferenceServiceClient fileRefService,
IServiceScopeFactory scopeFactory,
IRealtimeService realtime,
ILogger<ChatService> logger
@ -162,10 +163,9 @@ public partial class ChatService(
foreach (var file in files)
{
await fileRefService.CreateReferenceAsync(
file.Id,
file.Id.ToString(),
ChatFileUsageIdentifier,
messageResourceId,
duration: Duration.FromDays(30)
messageResourceId
);
}
}