async Task<string> GenerateJwtTokenAsync(User user)

This commit is contained in:
Artemy
2025-07-02 15:26:27 +07:00
parent 0967fe1b4e
commit 0669614a5e
13 changed files with 131 additions and 22 deletions
@@ -0,0 +1,13 @@
using System.ComponentModel.DataAnnotations;
using Govor.Core.Models;
namespace Govor.Contracts.Requests;
public class MediaUploadRequest
{
public byte[] Data { get; set; }
public string FileName { get; set; }
public string EncryptedKey { get; set; } = string.Empty;
public MediaType Type { get; set; }
public string MimeType { get; set; } = string.Empty;
}
@@ -0,0 +1,11 @@
using Govor.Core.Models;
namespace Govor.Contracts.Requests.SignalR;
public record MediaReference
{
public Guid MediaId { get; init; }
public string EncryptedKey { get; init; } = string.Empty;
public MediaType Type { get; init; }
public string MimeType { get; init; } = string.Empty;
}
@@ -0,0 +1,9 @@
namespace Govor.Contracts.Requests.SignalR;
public record MessageRequest
{
public Guid RecipientId { get; init; }
public string EncryptedContent { get; init; } = string.Empty;
public Guid? ReplyToMessageId { get; set; }
public List<MediaReference> MediaAttachments { get; set; } = new();
}