mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
async Task<string> GenerateJwtTokenAsync(User user)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user