mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-05 18:48:41 +00:00
feat: include createdAt in user responses
This commit is contained in:
@@ -360,6 +360,7 @@ namespace SharpbinV3.Server.Controllers
|
||||
{
|
||||
ID = p.ID,
|
||||
UUID = p.UUID,
|
||||
CreatedAt = p.CreatedAt,
|
||||
Title = p.Title,
|
||||
Syntax = p.Syntax,
|
||||
Size = p.Size,
|
||||
@@ -396,6 +397,7 @@ namespace SharpbinV3.Server.Controllers
|
||||
UID = user.UID,
|
||||
Username = user.Username,
|
||||
UUID = user.UUID,
|
||||
CreatedAt = user.CreatedAt,
|
||||
DisplayName = user.DisplayName,
|
||||
Email = user.Email,
|
||||
LastLogin = user.LastLogin,
|
||||
@@ -422,6 +424,7 @@ namespace SharpbinV3.Server.Controllers
|
||||
UID = user.UID,
|
||||
Username = user.Username,
|
||||
UUID = user.UUID,
|
||||
CreatedAt = user.CreatedAt,
|
||||
DisplayName = user.DisplayName,
|
||||
Roles = user.Roles,
|
||||
Visibility = user.Visibility
|
||||
|
||||
@@ -4,6 +4,7 @@ namespace SharpbinV3.Server.DTOs.User
|
||||
{
|
||||
public int? UID { get; set; }
|
||||
public Guid UUID { get; set; }
|
||||
public long CreatedAt { get; set; }
|
||||
public string Username { get; set; } = string.Empty;
|
||||
public string? DisplayName { get; set; }
|
||||
public int[] Roles { get; set; } = [];
|
||||
|
||||
Reference in New Issue
Block a user