Add SOR.Bazaar service — store, P2P marketplace, auction house, cosmetics
New project: SOR.Bazaar (12 message handlers)
Store: get_store, buy_booster_pack, buy_prebuilt_deck, buy_cosmetic, get_my_balance
Marketplace: get_listings, get_my_listings, list_card, cancel_listing,
buy_listing (shared-tx atomicity), place_bid (shared-tx + refund),
get_transactions
New DB entities:
BazaarDb: Cosmetic, PurchaseRecord, BoosterPackCardGrant, AuctionBid
CollectionDb: PlayerCosmetic
IdentityDb: Account.OriginPoints
BoosterPack gets CardSetId for set-scoped card pool draws.
BazaarEnums: PurchaseProductType, CosmeticType.
3 EF migrations applied to pg-forge-01:
AddOriginPoints, AddBazaarCosmetics, AddPlayerCosmetics
Admin pages: CosmeticsPage, CosmeticEditor, PurchaseRecordsPage (with
expandable booster pack card grant rows), NavMenu Bazaar submenu updates.
Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
// ENABLED_SERVICES=gateway → run only Gateway (dedicated gateway pod)
|
||||
|
||||
using SOR.Auth;
|
||||
using SOR.Bazaar;
|
||||
using SOR.Chat;
|
||||
using SOR.Collection;
|
||||
using SOR.Gateway;
|
||||
@@ -134,8 +135,9 @@ if (IsEnabled("chat")) builder.Services.AddChatService(builder.Configurati
|
||||
if (IsEnabled("collection")) builder.Services.AddCollectionService(builder.Configuration);
|
||||
if (IsEnabled("gateway")) builder.Services.AddGatewayService(builder.Configuration);
|
||||
|
||||
if (IsEnabled("bazaar")) builder.Services.AddBazaarService(builder.Configuration);
|
||||
|
||||
// TODO: Uncomment as each service is implemented:
|
||||
// if (IsEnabled("bazaar")) builder.Services.AddBazaarService(builder.Configuration);
|
||||
// if (IsEnabled("leaderboard")) builder.Services.AddLeaderboardService(builder.Configuration);
|
||||
// if (IsEnabled("content")) builder.Services.AddContentService(builder.Configuration);
|
||||
// if (IsEnabled("admin")) builder.Services.AddAdminService(builder.Configuration);
|
||||
|
||||
@@ -31,5 +31,6 @@
|
||||
<ProjectReference Include="..\SOR.Auth\SOR.Auth.csproj" />
|
||||
<ProjectReference Include="..\SOR.Chat\SOR.Chat.csproj" />
|
||||
<ProjectReference Include="..\SOR.Collection\SOR.Collection.csproj" />
|
||||
<ProjectReference Include="..\SOR.Bazaar\SOR.Bazaar.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user