mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
rework messages
+ addition LocalStorageService + tests
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
namespace Govor.Core.Models;
|
||||
|
||||
public class MediaAttachments
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public Guid MessageId { get; set; }
|
||||
|
||||
public MediaType Type { get; set; }
|
||||
public string FilePath { get; set; } = string.Empty; // путь к файлу (локальный или URL)
|
||||
public string MimeType { get; set; } = string.Empty;
|
||||
|
||||
public string? EncryptedKey { get; set; } // если используется отдельное шифрование
|
||||
public Message Message { get; set; } = null!;
|
||||
}
|
||||
|
||||
public enum MediaType
|
||||
{
|
||||
Image,
|
||||
Video,
|
||||
Audio,
|
||||
File,
|
||||
Voice
|
||||
}
|
||||
Reference in New Issue
Block a user