Remove keycloak and add missing functions
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user