Remove keycloak and add missing functions

This commit is contained in:
2026-05-09 19:36:49 +02:00
parent b28edbbd3a
commit 57a5358701
22 changed files with 89 additions and 313 deletions
+19 -5
View File
@@ -1,10 +1,24 @@
namespace Musify.Application.Users.Responses
using Musify.Domain.Entities;
namespace Musify.Application.Users.Responses
{
public record UserResponse(
string Id,
Guid Id,
string Name,
string FirstName,
string SecondName,
string? FirstName,
string? SecondName,
DateTime CreatedAt,
DateTime UpdatedAt);
DateTime UpdatedAt)
{
public static UserResponse FromEntity(User user)
{
return new UserResponse(
user.Id,
user.Name,
user.FirstName,
user.SecondName,
user.CreatedAt,
user.UpdatedAt);
}
}
}