更新JSON格式化
增加剪切板helper
This commit is contained in:
1 parent
d3488c98f5
commit
a217a74868
7 files changed
+342
-156
No files matched your search
@@ -1,58 +1,58 @@
|
||||
using System.Runtime.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace OrderSupportTicket.Models;
|
||||
|
||||
/// <summary>
|
||||
/// SSE 实时通知。通知只包含摘要定位信息,收到后需要重新查询对应工单。
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public sealed class TicketRealtimeNotification
|
||||
{
|
||||
/// <summary>
|
||||
/// 服务端事件 ID,用于至少一次投递时的去重。
|
||||
/// </summary>
|
||||
[DataMember(Name = "eventId")]
|
||||
////[JsonProperty("eventId")]
|
||||
public string EventId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 事件类型,例如 relay.ticket.message_added 或 resync_required。
|
||||
/// </summary>
|
||||
[DataMember(Name = "type")]
|
||||
////[JsonProperty("type")]
|
||||
public string Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发生变更的店铺 APPID。
|
||||
/// </summary>
|
||||
[DataMember(Name = "appId")]
|
||||
////[JsonProperty("appId")]
|
||||
public string AppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发生变更的微信订单号,保持为数字字符串。
|
||||
/// </summary>
|
||||
[DataMember(Name = "wechatOrderId")]
|
||||
////[JsonProperty("wechatOrderId")]
|
||||
public string WechatOrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 新增消息的消息 ID。
|
||||
/// </summary>
|
||||
[DataMember(Name = "messageId")]
|
||||
////[JsonProperty("messageId")]
|
||||
public string MessageId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 工单版本号,按服务端返回的字符串原样保存。
|
||||
/// </summary>
|
||||
[DataMember(Name = "version")]
|
||||
////[JsonProperty("version")]
|
||||
public string Version { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 事件发生时间,保留服务端 ISO 8601 字符串。
|
||||
/// </summary>
|
||||
[DataMember(Name = "occurredAt")]
|
||||
////[JsonProperty("occurredAt")]
|
||||
public string OccurredAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否要求客户端执行全量重新同步。
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public bool IsResyncRequired =>
|
||||
string.Equals(Type, "resync_required", System.StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user