feat: SKU保存链路切换到RabbitMQ Outbox并新增独立Worker
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 51s

This commit is contained in:
2026-02-25 11:20:38 +08:00
parent aeef4ca649
commit 77caac3af9
13 changed files with 9475 additions and 18 deletions

View File

@@ -0,0 +1,37 @@
namespace TakeoutSaaS.Application.App.Products.Messaging;
/// <summary>
/// SKU replace 任务已创建事件(用于异步消费执行)。
/// </summary>
public sealed class ProductSkuSaveJobRequestedEvent
{
/// <summary>
/// 默认消费队列名称。
/// </summary>
public const string QueueName = "tenant.product-sku-replace.v1";
/// <summary>
/// 任务 ID。
/// </summary>
public long JobId { get; set; }
/// <summary>
/// 租户 ID。
/// </summary>
public long TenantId { get; set; }
/// <summary>
/// 门店 ID。
/// </summary>
public long StoreId { get; set; }
/// <summary>
/// 商品 ID。
/// </summary>
public long ProductId { get; set; }
/// <summary>
/// 请求 ID幂等辅助
/// </summary>
public string RequestId { get; set; } = string.Empty;
}