mirror of
https://github.com/Govor-team/Govor.git
synced 2026-11-21 06:18:45 +00:00
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:
@@ -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>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user