the basis for group and private messages

This commit is contained in:
Artemy
2025-07-04 14:33:54 +07:00
parent fab3d6b67b
commit bdcfd32b11
20 changed files with 418 additions and 207 deletions
@@ -0,0 +1,5 @@
namespace Govor.Application.Interfaces.Messages.Parameters;
public record DeleteMessage(
Guid DeleterId,
Guid MessageId);
@@ -0,0 +1,7 @@
namespace Govor.Application.Interfaces.Messages.Parameters;
public record EditMessage(
Guid EditorId,
Guid MessageId,
string NewContent,
DateTime EditedAt);
@@ -2,7 +2,4 @@ using Govor.Core.Models;
namespace Govor.Application.Interfaces.Messages.Parameters;
public record SendMedia(Guid Id,
string EncryptedKey,
MediaType Type,
string MimeType);
public record SendMedia(Guid MediaId, string EncryptedKey, MediaType Type, string MimeType);
@@ -1,8 +1,11 @@
using Govor.Core.Models;
namespace Govor.Application.Interfaces.Messages.Parameters;
public record SendMessage(
string EncryptContent,
Guid? ReplyToMessageId,
RecipientType RecipientType,
Guid RecipientId,
Guid FromUserId,
DateTime SendAt,