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:
Artemy
2025-07-13 19:03:01 +07:00
parent 97b2ea14b2
commit 6063aafd9e
40 changed files with 1029 additions and 1381 deletions
@@ -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; }