feat(platform): add CRM SMS and payment settings

This commit is contained in:
2026-07-29 15:41:27 +08:00
parent 6db200a2fc
commit ead7bdc2e2
25 changed files with 23250 additions and 140 deletions

View File

@@ -29,6 +29,12 @@ public static class BackendPermissions
public const string PlatformBillingNotification = "platform:billing:notification";
public const string PlatformSaasCatalogManage = "platform:saas-catalog:manage";
public const string PlatformSaasBillingManage = "platform:saas-billing:manage";
public const string PlatformCrmRead = "platform:crm:read";
public const string PlatformCrmWrite = "platform:crm:write";
public const string PlatformSmsRead = "platform:sms:read";
public const string PlatformSmsWrite = "platform:sms:write";
public const string PlatformPaymentRead = "platform:payment:read";
public const string PlatformPaymentWrite = "platform:payment:write";
public static readonly IReadOnlySet<string> Tenant = new HashSet<string>(StringComparer.Ordinal)
{
@@ -61,7 +67,13 @@ public static class BackendPermissions
PlatformAuditView,
PlatformBillingNotification,
PlatformSaasCatalogManage,
PlatformSaasBillingManage
PlatformSaasBillingManage,
PlatformCrmRead,
PlatformCrmWrite,
PlatformSmsRead,
PlatformSmsWrite,
PlatformPaymentRead,
PlatformPaymentWrite
};
public static void EnsureTenant(string permissionCode)