new app server and database + added hub and controller of user profile

This commit is contained in:
Artemy
2025-11-04 11:41:06 +07:00
parent 1d442d037c
commit a5a5fc4758
62 changed files with 1760 additions and 2543 deletions
@@ -1,6 +1,7 @@
using System.ComponentModel.DataAnnotations;
using Govor.Core.Models;
using Govor.Core.Models.Messages;
using Microsoft.AspNetCore.Http;
using System.ComponentModel.DataAnnotations;
namespace Govor.Contracts.Requests;
@@ -14,4 +15,6 @@ public class MediaUploadRequest
public string MimeType { get; set; } = string.Empty;
[Required]
public string EncryptedKey { get; set; } = string.Empty;
[Required]
public MediaOwnerType OwnerType { get; set; } = MediaOwnerType.Message;
}
@@ -1,4 +1,5 @@
using Govor.Core.Models.Messages;
using System.ComponentModel.DataAnnotations;
namespace Govor.Contracts.Requests.SignalR;
@@ -6,6 +7,8 @@ public record MessageRequest
{
public Guid RecipientId { get; init; }
public RecipientType RecipientType { get; init; }
[Required]
[MaxLength(100_000, ErrorMessage = "EncryptedContent cannot exceed 100,000 characters.")]
public string EncryptedContent { get; init; } = string.Empty;
public Guid? ReplyToMessageId { get; set; }
public List<MediaReference> MediaAttachments { get; set; } = new();