♻️ 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,10 +1,11 @@
using DysonNetwork.Common.Interfaces;
using DysonNetwork.Sphere.Publisher;
using DysonNetwork.Sphere.Storage;
using Microsoft.EntityFrameworkCore;
namespace DysonNetwork.Sphere.Developer;
public class CustomAppService(AppDatabase db, FileReferenceService fileRefService)
public class CustomAppService(AppDatabase db, IFileReferenceServiceClient fileRefService)
{
public async Task<CustomApp?> CreateAppAsync(
Publisher.Publisher pub,
@ -32,7 +33,7 @@ public class CustomAppService(AppDatabase db, FileReferenceService fileRefServic
// Create a new reference
await fileRefService.CreateReferenceAsync(
picture.Id,
picture.Id.ToString(),
"custom-apps.picture",
app.ResourceIdentifier
);
@ -101,9 +102,9 @@ public class CustomAppService(AppDatabase db, FileReferenceService fileRefServic
// Create a new reference
await fileRefService.CreateReferenceAsync(
picture.Id,
picture.Id.ToString(),
"custom-apps.picture",
app.ResourceIdentifier
app.ResourceIdentifier
);
}