From febef6caaf7c880a4f8b579be6c8270addc1d173 Mon Sep 17 00:00:00 2001 From: MSuMshk <2039814060@qq.com> Date: Mon, 29 Dec 2025 21:16:09 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E4=BF=AE=E5=A4=8D=E5=95=86?= =?UTF-8?q?=E6=88=B7=E5=AE=A1=E6=A0=B8=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../App/Tenants/Handlers/ReviewTenantCommandHandler.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Application/TakeoutSaaS.Application/App/Tenants/Handlers/ReviewTenantCommandHandler.cs b/src/Application/TakeoutSaaS.Application/App/Tenants/Handlers/ReviewTenantCommandHandler.cs index 8e4e477..afc9a01 100644 --- a/src/Application/TakeoutSaaS.Application/App/Tenants/Handlers/ReviewTenantCommandHandler.cs +++ b/src/Application/TakeoutSaaS.Application/App/Tenants/Handlers/ReviewTenantCommandHandler.cs @@ -8,6 +8,7 @@ using TakeoutSaaS.Domain.Tenants.Enums; using TakeoutSaaS.Domain.Tenants.Repositories; using TakeoutSaaS.Shared.Abstractions.Constants; using TakeoutSaaS.Shared.Abstractions.Exceptions; +using TakeoutSaaS.Shared.Abstractions.Ids; using TakeoutSaaS.Shared.Abstractions.Security; namespace TakeoutSaaS.Application.App.Tenants.Handlers; @@ -18,7 +19,8 @@ namespace TakeoutSaaS.Application.App.Tenants.Handlers; public sealed class ReviewTenantCommandHandler( ITenantRepository tenantRepository, IMerchantRepository merchantRepository, - ICurrentUserAccessor currentUserAccessor) + ICurrentUserAccessor currentUserAccessor, + IIdGenerator idGenerator) : IRequestHandler { /// @@ -108,6 +110,7 @@ public sealed class ReviewTenantCommandHandler( { var merchant = new Merchant { + Id = idGenerator.NextId(), TenantId = tenant.Id, BrandName = tenant.Name, BrandAlias = tenant.ShortName,