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