diff --git a/src/Services/ResourceEventV2Dto.cs b/src/Services/ResourceEventV2Dto.cs index 3216a23..778d746 100644 --- a/src/Services/ResourceEventV2Dto.cs +++ b/src/Services/ResourceEventV2Dto.cs @@ -20,15 +20,39 @@ namespace FeishuNetSdk.Services public record ResourceEventV2Dto : EventV2Dto where T : EventBodyDto { /// - /// 订阅的云文档 token + /// 事件唯一Id /// - [JsonPropertyName("resource_id")] - public string? ResourceId { get; set; } + [JsonPropertyName("event_id")] + public override string EventId => Header.EventId; /// - /// 订阅的云文档 token + /// 事件 Token,即Verification Token。用于验证来自于同一个应用 /// - [JsonPropertyName("user_list")] - public UserIdSuffix[]? UserList { get; set; } + [JsonPropertyName("token")] + public override string Token => Header.Token; + + /// + /// 事件头 + /// + [JsonPropertyName("header")] + public new HeaderV2Suffix Header { get; set; } = new(); + + /// + /// 事件头 + /// + public record HeaderV2Suffix : HeaderSuffix + { + /// + /// 订阅的云文档 token + /// + [JsonPropertyName("resource_id")] + public string? ResourceId { get; set; } + + /// + /// 订阅的云文档 token + /// + [JsonPropertyName("user_list")] + public UserIdSuffix[]? UserList { get; set; } + } } }