first commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using MediatR;
|
||||
|
||||
namespace F9WebAiTest.Application.Services;
|
||||
|
||||
/// <summary>
|
||||
/// 业务状态变更事件(通用)。
|
||||
/// 业务单据状态变化时发布,Api 层订阅后通过 SignalR 推送给所有在线客户端,
|
||||
/// 各端监听后刷新已打开的相关页面,实现多端实时同步。
|
||||
/// </summary>
|
||||
public record BusinessChangedEvent(
|
||||
string BusinessType, // 业务类型,如 "LeaveApproval"
|
||||
string BusinessId, // 业务单据 ID
|
||||
string Action // 动作,如 "StatusChanged" / "Created" / "Completed"
|
||||
) : INotification;
|
||||
Reference in New Issue
Block a user