mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 11:44:56 +00:00
Refactor friend request and media services, remove console commands
Refactored the friend request command service and SignalR hub to return and broadcast FriendshipDto objects, improving real-time updates. Enhanced media upload and download logic to support file storage and retrieval, including database integration. Removed all command classes and related infrastructure from the Govor.Console project, streamlining the console client. Updated dependency injection and interfaces to reflect these changes.
This commit is contained in:
@@ -10,4 +10,10 @@
|
||||
<ProjectReference Include="..\Govor.Core\Govor.Core.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.AspNetCore.Http.Features">
|
||||
<HintPath>..\..\..\..\..\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.17\Microsoft.AspNetCore.Http.Features.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Govor.Core.Models.Messages;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
|
||||
namespace Govor.Contracts.Requests;
|
||||
|
||||
public class MediaUploadRequest
|
||||
{
|
||||
public byte[] Data { get; set; }
|
||||
[Required]
|
||||
public IFormFile Data { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public string EncryptedKey { get; set; } = string.Empty;
|
||||
public MediaType Type { get; set; }
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
using Govor.Core.Models.Messages;
|
||||
|
||||
namespace Govor.Contracts.Responses.SignalR;
|
||||
|
||||
public class MessageEditResponse
|
||||
{
|
||||
|
||||
public Guid MessageId { get; set; }
|
||||
public Guid EditorId { get; set; }
|
||||
public Guid RecipientId { get; init; }
|
||||
public RecipientType RecipientType{get; init; }
|
||||
public string NewEncryptedContent { get; set; } = string.Empty;
|
||||
public DateTime EditedAt { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user