misc
This commit is contained in:
parent
fbc6f562e3
commit
d7e0c59559
31 changed files with 249 additions and 57 deletions
10
Femto.Modules.Auth/Application/Dto/UserInfo.cs
Normal file
10
Femto.Modules.Auth/Application/Dto/UserInfo.cs
Normal file
|
@ -0,0 +1,10 @@
|
|||
using Femto.Modules.Auth.Contracts;
|
||||
using Femto.Modules.Auth.Models;
|
||||
|
||||
namespace Femto.Modules.Auth.Application.Dto;
|
||||
|
||||
public record UserInfo(Guid Id, string Username, ICollection<Role> Roles)
|
||||
{
|
||||
internal UserInfo(UserIdentity user)
|
||||
: this(user.Id, user.Username, user.Roles.Select(r => r.Role).ToList()) { }
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue