Add forwarding, friend controls, and benefits

Add message forwarding and reply lookup, friend removal and blocking endpoints, and database-backed Govor+ privileges with customizable profile tags. Include migrations, integration tests, and updated API and operations documentation.
This commit is contained in:
Artemy
2026-10-31 18:29:40 +07:00
parent a3401ceedf
commit 632ac04b56
78 changed files with 5284 additions and 720 deletions
+1
View File
@@ -3,6 +3,7 @@
public class UserProfileDto
{
public Guid Id { get; set; }
public Govor.Domain.Models.Users.UserBenefitsView Benefits { get; set; } = new(0, false, false, null);
public string Username { get; set; } = string.Empty;
public string? Description { get; set; }
public Guid? IconId { get; set; }
@@ -0,0 +1,5 @@
using Govor.Domain.Models.Users;
namespace Govor.Contracts.Requests;
public sealed record SetPrivilegesRequest(UserPrivileges Privileges);
@@ -11,5 +11,6 @@ public record MessageRequest
[MaxLength(1_000_000, ErrorMessage = "EncryptedContent cannot exceed 1,000,000 characters.")]
public string EncryptedContent { get; init; } = string.Empty;
public Guid? ReplyToMessageId { get; set; }
public Guid? ForwardedFromMessageId { get; init; }
public List<MediaReference> MediaAttachments { get; set; } = new();
}
@@ -13,6 +13,9 @@ public class MessageResponse
public bool IsEdited { get; set; } = false;
public DateTime? EditedAt { get; set; }
public Guid? ReplyToMessageId { get; set; }
public Guid? ForwardedFromMessageId { get; set; }
public Guid? ForwardedFromUserId { get; set; }
public DateTime? ForwardedFromSentAt { get; set; }
public long ReactionsVersion { get; set; }
public List<MediaAttachmentResponse> MediaAttachments { get; set; } = new();
@@ -11,7 +11,10 @@ public class UserMessageResponse
public RecipientType RecipientType{get; set; }
public string EncryptedContent { get; set; } = string.Empty;
public Guid? ReplyToMessageId { get; set; }
public Guid? ForwardedFromMessageId { get; set; }
public Guid? ForwardedFromUserId { get; set; }
public DateTime? ForwardedFromSentAt { get; set; }
public DateTime SentAt { get; set; }
public bool IsEdited { get; set; } = false;
public List<MediaFile> MediaAttachments { get; set; } = new List<MediaFile>();
}
}