mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
Refactor: Revert to hard deletes for messages. Remove IsDeleted flag and update repository and configurations accordingly.
This commit is contained in:
@@ -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);
|
||||
@@ -1,9 +1,12 @@
|
||||
using Govor.Core.Models; // Added for RecipientType
|
||||
|
||||
namespace Govor.Application.Interfaces.Messages.Parameters;
|
||||
|
||||
public record SendMessage(
|
||||
string EncryptContent,
|
||||
Guid? ReplyToMessageId,
|
||||
Guid RecipientId,
|
||||
RecipientType RecipientType, // Added this field
|
||||
Guid FromUserId,
|
||||
DateTime SendAt,
|
||||
IEnumerable<SendMedia> Media);
|
||||
Reference in New Issue
Block a user