Refactor: migrate Core -> Domain and reorganize projects

Large refactor that renames/moves core types into a new Govor.Domain surface and reorganizes the Application layer. Models, configurations, migrations and many files moved from Govor.Core/Govor.Data to Govor.Domain; numerous Application services, interfaces and implementations were relocated or added (authentication, friends, messages, medias, push notifications, user sessions, storage, synching, private chats, etc.). Tests updated to use Govor.Domain namespaces and adjusted project references (removed Govor.Data reference from API tests). Also updated API, Hub and mapping code and project files to reflect the new structure and naming. This is primarily a codebase-wide namespace and module reorganization to establish a Domain project and restructure application services.
This commit is contained in:
Artemy
2026-07-16 19:27:45 +07:00
parent 1d35356c8c
commit 6d1c53beeb
371 changed files with 2729 additions and 6694 deletions
+28
View File
@@ -0,0 +1,28 @@
using Govor.Domain.Models.Users;
namespace Govor.Domain.Models;
public class Invitation
{
public Guid Id { get; set; }
public bool IsAdmin { get; set; }
public bool IsActive { get; set; } = true;
public string Code { get; set; }
public string Description { get; set; }
public DateTime DateCreated { get; set; }
public DateTime EndDate { get; set; }
public int MaxParticipants { get; set; }
public List<User> Users { get; set; } = new List<User>();
public override bool Equals(object? obj)
{
var invitation = obj as Invitation ?? throw new InvalidCastException();
return Id == invitation.Id &&
IsAdmin == invitation.IsAdmin &&
Description == invitation.Description &&
DateCreated == invitation.DateCreated &&
EndDate == invitation.EndDate &&
MaxParticipants == invitation.MaxParticipants;
}
}