mirror of
https://github.com/Stone-Red-Code/EchoHub.git
synced 2026-09-04 09:06:07 +02:00
Refactor EchoHub solution structure and remove unused components
- Deleted EchoHub.slnx and related project files for EchoHub.Web and EchoHub.Api. - Removed ServerDirectoryDbContext, ServerDirectoryService, and related extensions and DTOs. - Updated CommandHandler and Program.cs in EchoHub.Client to handle URL sending instead of file downloading. - Added SendUrlRequest DTO and corresponding API endpoint in ChannelsController for handling URL uploads. - Implemented database migration support in EchoHub.Server with initial migration setup. - Adjusted Program.cs to include HTTP client configuration for image downloading. - Cleaned up unnecessary files and references to streamline the project.
This commit is contained in:
@@ -33,3 +33,5 @@ public record SendMessageRequest(string ChannelName, string Content);
|
||||
public record CreateChannelRequest(string Name, string? Topic = null);
|
||||
|
||||
public record UpdateTopicRequest(string? Topic);
|
||||
|
||||
public record SendUrlRequest(string Url);
|
||||
|
||||
@@ -1,15 +1,3 @@
|
||||
namespace EchoHub.Core.DTOs;
|
||||
|
||||
public record ServerInfoDto(
|
||||
Guid Id,
|
||||
string Name,
|
||||
string? Description,
|
||||
string Url,
|
||||
int OnlineUsers,
|
||||
int TotalChannels,
|
||||
bool IsOnline,
|
||||
DateTimeOffset LastPingAt);
|
||||
|
||||
public record RegisterServerRequest(string Name, string Url, string? Description = null);
|
||||
|
||||
public record ServerStatusDto(string Name, string? Description, int OnlineUsers, int TotalChannels);
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
namespace EchoHub.Core.Models;
|
||||
|
||||
public class ServerInfo
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public required string Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public required string Url { get; set; }
|
||||
public int OnlineUsers { get; set; }
|
||||
public int TotalChannels { get; set; }
|
||||
public DateTimeOffset RegisteredAt { get; set; } = DateTimeOffset.UtcNow;
|
||||
public DateTimeOffset LastPingAt { get; set; } = DateTimeOffset.UtcNow;
|
||||
public bool IsOnline { get; set; } = true;
|
||||
}
|
||||
Reference in New Issue
Block a user