Skip to content
This repository was archived by the owner on Oct 12, 2025. It is now read-only.

Commit 43646ee

Browse files
authored
[Core] public video/record/image file id (#783)
1 parent 595b5fa commit 43646ee

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

Lagrange.Core/Message/Entity/ImageEntity.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ public class ImageEntity : IMessageEntity
2626

2727
public string ImageUrl { get; set; } = string.Empty;
2828

29+
public string? ImageUuid { get; set; }
30+
2931
internal Lazy<Stream>? ImageStream { get; set; }
30-
32+
3133
internal MsgInfo? MsgInfo { get; set; }
3234

3335
internal NotOnlineImage? CompatImage { get; set; }
@@ -104,6 +106,7 @@ IEnumerable<Elem> IMessageEntity.PackElement()
104106
SubType = (int)extra.ExtBizInfo.Pic.BizType,
105107
IsGroup = extra.ExtBizInfo.Pic.BytesPbReserveTroop != null,
106108
Summary = string.IsNullOrEmpty(extra.ExtBizInfo.Pic.TextSummary) ? "[图片]" : extra.ExtBizInfo.Pic.TextSummary,
109+
ImageUuid = index.FileUuid
107110
};
108111
}
109112

Lagrange.Core/Message/Entity/RecordEntity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class RecordEntity : IMessageEntity
2828

2929
internal Lazy<Stream>? AudioStream { get; set; }
3030

31-
internal string? AudioUuid { get; set; }
31+
public string? AudioUuid { get; set; }
3232

3333
internal string? FileSha1 { get; set; }
3434

Lagrange.Core/Message/Entity/VideoEntity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class VideoEntity : IMessageEntity
3232

3333
internal Lazy<Stream>? ThumbnailStream { get; set; }
3434

35-
internal string? VideoUuid { get; set; }
35+
public string? VideoUuid { get; set; }
3636

3737
internal MsgInfo? MsgInfo { get; set; }
3838

0 commit comments

Comments
 (0)