feat(product): add product list/detail/save/soldout/batch api support
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 47s

This commit is contained in:
2026-02-21 17:23:48 +08:00
parent d41f69045f
commit f7c2ae4bac
24 changed files with 10302 additions and 6 deletions

View File

@@ -737,6 +737,13 @@ public sealed class TakeoutAppDbContext(
builder.Property(x => x.Unit).HasMaxLength(16);
builder.Property(x => x.Price).HasPrecision(18, 2);
builder.Property(x => x.OriginalPrice).HasPrecision(18, 2);
builder.Property(x => x.Kind).HasConversion<int>().HasDefaultValue(Domain.Products.Enums.ProductKind.Single);
builder.Property(x => x.SalesMonthly).HasDefaultValue(0);
builder.Property(x => x.TagsJson).HasColumnType("text").HasDefaultValue("[]");
builder.Property(x => x.SoldoutMode).HasConversion<int?>();
builder.Property(x => x.SoldoutReason).HasMaxLength(256);
builder.Property(x => x.SyncToPlatform).HasDefaultValue(true);
builder.Property(x => x.NotifyManager).HasDefaultValue(false);
builder.Property(x => x.CoverImage).HasMaxLength(256);
builder.Property(x => x.GalleryImages).HasMaxLength(1024);
builder.Property(x => x.Description).HasColumnType("text");