mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-05 18:48:41 +00:00
this is a LOT, i should've commited in stages but oh well, from what i can remember:
- paste interactions (reactions)
- comments
- comment interactions (reactions)
- rich text editor
- move all report apis into report controller
- rename size to sizeStored
- rename trueSize to originalSize
- fixed compression on paste compression
- implemented compression threshold
- use longs instead of ints where possible in the entities
- improve record view + remove redundant check for existing view
25 lines
756 B
C#
25 lines
756 B
C#
using SharpbinV3.Server.Data.Entities;
|
|
using SharpbinV3.Server.Data.Enums;
|
|
|
|
namespace SharpbinV3.Server.DTOs.User
|
|
{
|
|
public class UserSimpleDto
|
|
{
|
|
public long? 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 Role Roles { get; set; } = Role.User;
|
|
public bool IsBanned { get; set; } = false;
|
|
public Visibility Visibility { get; set; }
|
|
}
|
|
|
|
public class UserResponseDto : UserSimpleDto
|
|
{
|
|
public string? Email { get; set; }
|
|
public bool EmailVerified { get; set; } = false;
|
|
public long? LastLogin { get; set; }
|
|
}
|
|
}
|