|
|
@@ -64,7 +64,13 @@ public static class S8RecipientType
|
|
|
public const string SpecificUser = "SPECIFIC_USER";
|
|
|
}
|
|
|
|
|
|
-/// <summary>事件元信息。</summary>
|
|
|
+/// <summary>
|
|
|
+/// 事件元信息。
|
|
|
+/// <para><b><paramref name="TriggerHint"/> 是给业务用户看的「什么时候会发生」</b>,
|
|
|
+/// 不是给开发看的派发点标注 —— 通知设置页会直接展示它。
|
|
|
+/// 原先几个事件写的是 <c>POST {id}/claim</c> 这样的接口路径,
|
|
|
+/// 与「业务用户不需要理解技术实现」相悖。</para>
|
|
|
+/// </summary>
|
|
|
public sealed record S8NotifyEventDefinition(string Code, string DisplayName, string TriggerHint, int OrderNo);
|
|
|
|
|
|
/// <summary>
|
|
|
@@ -76,9 +82,9 @@ public static class S8NotificationCatalog
|
|
|
public static readonly IReadOnlyList<S8NotifyEventDefinition> Events = new List<S8NotifyEventDefinition>
|
|
|
{
|
|
|
new(S8NotifyEventCode.ExceptionCreated, "异常产生", "规则命中建单 / 人工提报", 10),
|
|
|
- new(S8NotifyEventCode.ExceptionClaimed, "认领成功", "POST {id}/claim", 20),
|
|
|
- new(S8NotifyEventCode.ExceptionTransferred, "转派", "POST {id}/transfer", 30),
|
|
|
- new(S8NotifyEventCode.VerificationSubmitted, "提交复核", "POST {id}/submit-verification", 40),
|
|
|
+ new(S8NotifyEventCode.ExceptionClaimed, "认领成功", "处理人认领异常时", 20),
|
|
|
+ new(S8NotifyEventCode.ExceptionTransferred, "转派", "异常被转派给其他处理人时", 30),
|
|
|
+ new(S8NotifyEventCode.VerificationSubmitted, "提交复核", "处理人提交复核时", 40),
|
|
|
new(S8NotifyEventCode.EscalationTriggered, "超时升级", "超时自动升级作业", 50),
|
|
|
new(S8NotifyEventCode.ExceptionRecovered, "异常恢复", "调度器检测到恢复", 60),
|
|
|
new(S8NotifyEventCode.ExceptionOverdueClosed, "超时关闭", "检验通过后闭环及时性回顾", 70),
|