forked from gongxuegit/tiku-backend.net
feat(saas): implement marketplace and tenant onboarding
This commit is contained in:
@@ -25,7 +25,9 @@ public sealed record TenantRuntimeBootstrap(
|
||||
JsonElement Theme,
|
||||
JsonElement Features,
|
||||
JsonElement Navigation,
|
||||
JsonElement HomeModules);
|
||||
JsonElement HomeModules,
|
||||
IReadOnlyCollection<string> EnabledFeatures,
|
||||
IReadOnlyCollection<string> LoginMethods);
|
||||
|
||||
public interface ITenantFrontendConfigService
|
||||
{
|
||||
|
||||
19
Tiku.Application/Tenancy/TenantOnboardingModels.cs
Normal file
19
Tiku.Application/Tenancy/TenantOnboardingModels.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace Tiku.Application.Tenancy;
|
||||
|
||||
public sealed record TenantOnboardingStep(
|
||||
string Code,
|
||||
bool Required,
|
||||
bool Completed,
|
||||
string? Detail);
|
||||
|
||||
public sealed record TenantOnboardingStatus(
|
||||
Guid TenantId,
|
||||
bool ReadyForStudentTraffic,
|
||||
int CompletedRequiredSteps,
|
||||
int RequiredSteps,
|
||||
IReadOnlyCollection<TenantOnboardingStep> Steps);
|
||||
|
||||
public interface ITenantOnboardingService
|
||||
{
|
||||
Task<TenantOnboardingStatus> GetStatusAsync(Guid tenantId, CancellationToken cancellationToken = default);
|
||||
}
|
||||
Reference in New Issue
Block a user