Adds user Alias. Make StoredDataUrls optionals.
This commit is contained in:
@@ -7,6 +7,7 @@ public class UserModel
|
||||
public string Id { get; set; } = string.Empty;
|
||||
public string? CreatorAlias { get; set; }
|
||||
public string UserName { get; set; } = string.Empty;
|
||||
public string? Alias { get; set; }
|
||||
public string FirstName { get; set; } = string.Empty;
|
||||
public string LastName { get; set; } = string.Empty;
|
||||
public string Occupation { get; set; } = string.Empty;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
public class StoredDataUrlsModel
|
||||
{
|
||||
public string BannerPictureUrl { get; set; } = string.Empty;
|
||||
public string ProfilePictureUrl { get; set; } = string.Empty;
|
||||
public string WebsiteIconUrl { get; set; } = string.Empty;
|
||||
public string? BannerPictureUrl { get; set; }
|
||||
public string? ProfilePictureUrl { get; set; }
|
||||
public string? WebsiteIconUrl { get; set; }
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ public class GetCurrentUserQueryHandler(
|
||||
var user = new UserDto
|
||||
{
|
||||
Id = currentUserId,
|
||||
Alias = identityUser.Alias,
|
||||
FirstName = identityUser.FirstName,
|
||||
LastName = identityUser.LastName,
|
||||
UserName = identityUser.UserName,
|
||||
|
||||
@@ -5,6 +5,7 @@ namespace Hutopy.Application.Users.Queries.GetCurrentUser;
|
||||
public class UserDto
|
||||
{
|
||||
public Guid Id { get; init; }
|
||||
public string? Alias { get; init; }
|
||||
public required string FirstName { get; init; }
|
||||
public required string LastName { get; init; }
|
||||
public string? CreatorAlias { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user