refactor(platform): split control plane services
This commit is contained in:
@@ -324,10 +324,15 @@ public sealed record RetryPlatformBillingDunningEventCommand(Guid EventId, strin
|
||||
|
||||
public sealed record ResolvePlatformBillingDunningEventCommand(Guid EventId, string Reason);
|
||||
|
||||
public interface IPlatformAdminService
|
||||
public interface IPlatformDashboardService
|
||||
{
|
||||
Task<PlatformOverview> GetOverviewAsync(PlatformAdminActor actor, CancellationToken cancellationToken = default);
|
||||
|
||||
}
|
||||
|
||||
public interface ITenantProvisioningAdministrationService
|
||||
{
|
||||
|
||||
Task<PlatformTenantList> GetTenantsAsync(PlatformAdminActor actor, PlatformAdminQuery query,
|
||||
CancellationToken cancellationToken = default);
|
||||
|
||||
@@ -355,12 +360,20 @@ public interface IPlatformAdminService
|
||||
Task<TenantBillingPolicyItem> UpsertTenantBillingPolicyAsync(PlatformAdminActor actor,
|
||||
UpsertTenantBillingPolicyCommand command, CancellationToken cancellationToken = default);
|
||||
|
||||
}
|
||||
|
||||
public interface IPlatformTenantDomainService
|
||||
{
|
||||
Task<PlatformDomainList> GetDomainsAsync(PlatformAdminActor actor, PlatformAdminQuery query,
|
||||
CancellationToken cancellationToken = default);
|
||||
|
||||
Task<PlatformDomainRecheckResult> RecheckDomainAsync(PlatformAdminActor actor, Guid domainId,
|
||||
CancellationToken cancellationToken = default);
|
||||
|
||||
}
|
||||
|
||||
public interface IPlatformStaffAccessService
|
||||
{
|
||||
Task<PlatformStaffList> GetStaffAsync(PlatformAdminActor actor, PlatformAdminQuery query,
|
||||
CancellationToken cancellationToken = default);
|
||||
|
||||
@@ -370,6 +383,10 @@ public interface IPlatformAdminService
|
||||
Task<PlatformStaffItem> UpdateStaffStatusAsync(PlatformAdminActor actor, UpdatePlatformStaffStatusCommand command,
|
||||
CancellationToken cancellationToken = default);
|
||||
|
||||
}
|
||||
|
||||
public interface IPlatformAuditAlertService
|
||||
{
|
||||
Task<PlatformAuditLogList> GetAuditLogsAsync(PlatformAdminActor actor, PlatformAdminQuery query,
|
||||
CancellationToken cancellationToken = default);
|
||||
|
||||
@@ -379,6 +396,10 @@ public interface IPlatformAdminService
|
||||
Task<PlatformAuditAlert> UpdateAuditAlertStatusAsync(PlatformAdminActor actor,
|
||||
UpdatePlatformAuditAlertStatusCommand command, CancellationToken cancellationToken = default);
|
||||
|
||||
}
|
||||
|
||||
public interface IPlatformDunningService
|
||||
{
|
||||
Task<PlatformBillingDunningChannelList> GetBillingDunningChannelsAsync(PlatformAdminActor actor,
|
||||
PlatformAdminQuery query, CancellationToken cancellationToken = default);
|
||||
|
||||
@@ -407,4 +428,4 @@ public interface IPlatformAdminService
|
||||
public sealed class PlatformAdminException(string message, string code) : Exception(message)
|
||||
{
|
||||
public string Code { get; } = code;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user