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:
@@ -0,0 +1,78 @@
|
||||
namespace Meezi.Core.Branding;
|
||||
|
||||
/// <summary>Per-café dashboard + public menu appearance (stored as JSON on <see cref="Entities.Cafe.ThemeJson"/>).</summary>
|
||||
public class CafeTheme
|
||||
{
|
||||
public string PaletteId { get; set; } = CafeThemeDefaults.PaletteMeeziGreen;
|
||||
public string PanelStyle { get; set; } = CafeThemeDefaults.PanelModern;
|
||||
public string MenuStyle { get; set; } = CafeThemeDefaults.MenuCards;
|
||||
/// <summary>Background texture for QR / guest table menu.</summary>
|
||||
public string MenuTexture { get; set; } = CafeThemeDefaults.MenuTextureNone;
|
||||
public string Density { get; set; } = CafeThemeDefaults.DensityComfortable;
|
||||
public string Radius { get; set; } = CafeThemeDefaults.RadiusMd;
|
||||
public CafeThemeCustomColors? Custom { get; set; }
|
||||
}
|
||||
|
||||
public class CafeThemeCustomColors
|
||||
{
|
||||
public string? Primary { get; set; }
|
||||
public string? Secondary { get; set; }
|
||||
public string? Accent { get; set; }
|
||||
public string? Background { get; set; }
|
||||
public string? Surface { get; set; }
|
||||
public string? Text { get; set; }
|
||||
public string? TextMuted { get; set; }
|
||||
public string? Destructive { get; set; }
|
||||
public string? Success { get; set; }
|
||||
|
||||
/// <summary>0–100 opacity for custom primary (when set).</summary>
|
||||
public int? PrimaryOpacity { get; set; }
|
||||
public int? SecondaryOpacity { get; set; }
|
||||
public int? AccentOpacity { get; set; }
|
||||
public int? BackgroundOpacity { get; set; }
|
||||
public int? SurfaceOpacity { get; set; }
|
||||
public int? TextOpacity { get; set; }
|
||||
public int? TextMutedOpacity { get; set; }
|
||||
public int? DestructiveOpacity { get; set; }
|
||||
public int? SuccessOpacity { get; set; }
|
||||
}
|
||||
|
||||
public static class CafeThemeDefaults
|
||||
{
|
||||
public const string PaletteMeeziGreen = "meezi-green";
|
||||
|
||||
public const string PanelFlat = "flat";
|
||||
public const string PanelModern = "modern";
|
||||
public const string PanelGlass = "glass";
|
||||
public const string PanelMinimal = "minimal";
|
||||
public const string PanelBold = "bold";
|
||||
public const string PanelSoft = "soft";
|
||||
public const string PanelElevated = "elevated";
|
||||
public const string PanelOutline = "outline";
|
||||
|
||||
public const string MenuCards = "cards";
|
||||
public const string MenuCompact = "compact";
|
||||
public const string MenuGrid = "grid";
|
||||
public const string MenuList = "list";
|
||||
public const string MenuMagazine = "magazine";
|
||||
public const string MenuClassic = "classic";
|
||||
|
||||
public const string MenuTextureNone = "none";
|
||||
public const string MenuTexturePaper = "paper";
|
||||
public const string MenuTextureLinen = "linen";
|
||||
public const string MenuTextureDots = "dots";
|
||||
public const string MenuTextureGrid = "grid";
|
||||
public const string MenuTextureMarble = "marble";
|
||||
public const string MenuTextureWood = "wood";
|
||||
public const string MenuTextureWarm = "warm";
|
||||
|
||||
public const string DensityCompact = "compact";
|
||||
public const string DensityComfortable = "comfortable";
|
||||
public const string DensitySpacious = "spacious";
|
||||
|
||||
public const string RadiusNone = "none";
|
||||
public const string RadiusSm = "sm";
|
||||
public const string RadiusMd = "md";
|
||||
public const string RadiusLg = "lg";
|
||||
public const string RadiusFull = "full";
|
||||
}
|
||||
Reference in New Issue
Block a user