forked from xiongyuxing/tiku-backend.net
feat(saas): implement marketplace and tenant onboarding
This commit is contained in:
@@ -6,13 +6,19 @@ public static class BackendPermissions
|
||||
public const string TenantStaffManage = "tenant:staff:manage";
|
||||
public const string TenantRoleManage = "tenant:role:manage";
|
||||
public const string TenantStudentManage = "tenant:student:manage";
|
||||
public const string TenantContentManage = "tenant:content:manage";
|
||||
public const string TenantContentManage = "tenant:question-bank:manage";
|
||||
public const string TenantVocabularyManage = "tenant:vocabulary:manage";
|
||||
public const string TenantHandbookManage = "tenant:handbook:manage";
|
||||
public const string TenantVideoManage = "tenant:video:manage";
|
||||
public const string TenantScorelineManage = "tenant:scoreline:manage";
|
||||
public const string TenantSiteContentManage = "tenant:site-content:manage";
|
||||
public const string TenantSettingsManage = "tenant:settings:manage";
|
||||
public const string TenantProviderManage = "tenant:provider:manage";
|
||||
public const string TenantCommerceOperate = "tenant:commerce:operate";
|
||||
public const string TenantCrmManage = "tenant:crm:manage";
|
||||
public const string TenantCommissionManage = "tenant:commission:manage";
|
||||
public const string TenantJobManage = "tenant:job:manage";
|
||||
public const string TenantBillingManage = "tenant:billing:manage";
|
||||
|
||||
public const string PlatformDashboardView = "platform:dashboard:view";
|
||||
public const string PlatformTenantManage = "platform:tenant:manage";
|
||||
@@ -21,6 +27,8 @@ public static class BackendPermissions
|
||||
public const string PlatformQuestionBankManage = "platform:question-bank:manage";
|
||||
public const string PlatformAuditView = "platform:audit:view";
|
||||
public const string PlatformBillingNotification = "platform:billing:notification";
|
||||
public const string PlatformSaasCatalogManage = "platform:saas-catalog:manage";
|
||||
public const string PlatformSaasBillingManage = "platform:saas-billing:manage";
|
||||
|
||||
public static readonly IReadOnlySet<string> Tenant = new HashSet<string>(StringComparer.Ordinal)
|
||||
{
|
||||
@@ -29,12 +37,18 @@ public static class BackendPermissions
|
||||
TenantRoleManage,
|
||||
TenantStudentManage,
|
||||
TenantContentManage,
|
||||
TenantVocabularyManage,
|
||||
TenantHandbookManage,
|
||||
TenantVideoManage,
|
||||
TenantScorelineManage,
|
||||
TenantSiteContentManage,
|
||||
TenantSettingsManage,
|
||||
TenantProviderManage,
|
||||
TenantCommerceOperate,
|
||||
TenantCrmManage,
|
||||
TenantCommissionManage,
|
||||
TenantJobManage
|
||||
TenantJobManage,
|
||||
TenantBillingManage
|
||||
};
|
||||
|
||||
public static readonly IReadOnlySet<string> Platform = new HashSet<string>(StringComparer.Ordinal)
|
||||
@@ -45,7 +59,9 @@ public static class BackendPermissions
|
||||
PlatformRoleManage,
|
||||
PlatformQuestionBankManage,
|
||||
PlatformAuditView,
|
||||
PlatformBillingNotification
|
||||
PlatformBillingNotification,
|
||||
PlatformSaasCatalogManage,
|
||||
PlatformSaasBillingManage
|
||||
};
|
||||
|
||||
public static void EnsureTenant(string permissionCode)
|
||||
|
||||
Reference in New Issue
Block a user