♻️ Splitted wallet service

This commit is contained in:
2026-02-03 02:18:02 +08:00
parent bb9105c78c
commit 9a1f36ee26
43 changed files with 623 additions and 590 deletions

View File

@@ -64,6 +64,26 @@ public static class ServiceInjectionHelper
return services;
}
public IServiceCollection AddWalletService()
{
services.AddGrpcClientWithSharedChannel<WalletService.WalletServiceClient>(
"https://_grpc.wallet",
"WalletService");
services.AddSingleton<RemoteWalletService>();
services.AddGrpcClientWithSharedChannel<PaymentService.PaymentServiceClient>(
"https://_grpc.wallet",
"PaymentService");
services.AddSingleton<RemotePaymentService>();
services.AddGrpcClientWithSharedChannel<SubscriptionService.SubscriptionServiceClient>(
"https://_grpc.wallet",
"SubscriptionService");
services.AddSingleton<RemoteSubscriptionService>();
return services;
}
public IServiceCollection AddDriveService()
{
services.AddGrpcClientWithSharedChannel<FileService.FileServiceClient>(