Реализовать лабораторную работу 4

This commit is contained in:
Никита
2026-11-10 10:57:36 +03:00
parent ec540a1a72
commit fbc1773553
103 changed files with 5424 additions and 27 deletions
@@ -0,0 +1,6 @@
namespace Messenger.Api.Data.Entities;
public sealed record MessageEntity(Guid Id, Guid ChatId, Guid SenderId, string Text, DateTime CreatedAt, Guid[]? AttachmentIds = null)
{
public Contracts.MessageDto ToDto() => new(Id, ChatId, SenderId, Text, CreatedAt.ToString("O"), AttachmentIds ?? []);
}