feat(api): .NET 10 multi-tenant REST API

Full backend implementation:
- Multi-tenant cafe/restaurant management (menus, orders, tables, staff)
- POS order flow with ZarinPal and Snappfood payment integration
- OTP authentication via Kavenegar SMS
- QR digital menu with public discover/finder endpoints
- Customer loyalty, coupons, CRM
- PostgreSQL via EF Core, Redis for caching/sessions
- Background jobs, webhook handlers
- Full migration history

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
soroush.asadi
2026-05-27 21:33:48 +03:30
parent 03376b3ea1
commit ef15fd6247
472 changed files with 120358 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
namespace Meezi.Core.Platform;
public class PlanLimitsData
{
public int MaxOrdersPerDay { get; set; } = int.MaxValue;
public int MaxTerminals { get; set; } = int.MaxValue;
public int MaxCustomers { get; set; } = int.MaxValue;
public int MaxSmsPerMonth { get; set; } = int.MaxValue;
public int MaxBranches { get; set; } = int.MaxValue;
public int MaxReportHistoryDays { get; set; } = int.MaxValue;
public static PlanLimitsData ForTier(Enums.PlanTier tier) => tier switch
{
Enums.PlanTier.Free => new PlanLimitsData
{
MaxOrdersPerDay = 50,
MaxTerminals = 1,
MaxCustomers = 50,
MaxSmsPerMonth = 0,
MaxBranches = 1,
MaxReportHistoryDays = 8
},
Enums.PlanTier.Pro => new PlanLimitsData
{
MaxOrdersPerDay = int.MaxValue,
MaxTerminals = 3,
MaxCustomers = int.MaxValue,
MaxSmsPerMonth = 50,
MaxBranches = 3,
MaxReportHistoryDays = 90
},
Enums.PlanTier.Business => new PlanLimitsData
{
MaxOrdersPerDay = int.MaxValue,
MaxTerminals = int.MaxValue,
MaxCustomers = int.MaxValue,
MaxSmsPerMonth = 200,
MaxBranches = int.MaxValue,
MaxReportHistoryDays = int.MaxValue
},
_ => new PlanLimitsData()
};
}
@@ -0,0 +1,14 @@
namespace Meezi.Core.Platform;
/// <summary>PlatformSettings keys for third-party integrations (admin-configurable).</summary>
public static class PlatformIntegrationKeys
{
public const string OpenAiApiKey = "integrations.openai.apiKey";
public const string OpenAiEnabled = "integrations.openai.enabled";
public const string OpenAiModel = "integrations.openai.model";
public const string OpenAiCoffeeAdvisorEnabled = "integrations.openai.coffeeAdvisor.enabled";
public const string MeshyApiKey = "integrations.meshy.apiKey";
public const string MeshyEnabled = "integrations.meshy.enabled";
public const string MeshyMenu3dEnabled = "integrations.meshy.menu3d.enabled";
}