chore: rename SharpbinV3 dir to SharpbinV3.Server

This commit is contained in:
2025-12-30 12:39:26 -05:00
parent 31142e0cf9
commit 1ec4877aad
45 changed files with 7 additions and 94 deletions
+10
View File
@@ -0,0 +1,10 @@
namespace SharpbinV3.Server.DTOs
{
public class JWTResult
{
public string? Token { get; set; }
public string? RefreshToken { get; set; }
public bool Success { get; set; }
public List<string>? Errors { get; set; }
}
}
+13
View File
@@ -0,0 +1,13 @@
using System.ComponentModel.DataAnnotations;
namespace SharpbinV3.Server.DTOs
{
public class LoginRequest
{
[StringLength(50, MinimumLength = 3)]
public string? Username { get; set; }
public string? Email { get; set; }
[StringLength(128, MinimumLength = 6)]
public string? Password { get; set; }
}
}
@@ -0,0 +1,10 @@
namespace SharpbinV3.Server.DTOs
{
public class PasteMetadataUpdateRequest
{
public string? Title { get; set; }
public string? Syntax { get; set; }
public int? Visibility { get; set; }
public long? ExpiresAt { get; set; }
}
}
@@ -0,0 +1,12 @@
using System.ComponentModel.DataAnnotations;
namespace SharpbinV3.Server.DTOs
{
public class RefreshTokenRequest
{
[Required]
public required string Token { get; set; }
[Required]
public required string RefreshToken { get; set; }
}
}
+19
View File
@@ -0,0 +1,19 @@
using System.ComponentModel.DataAnnotations;
namespace SharpbinV3.Server.DTOs
{
public class RegisterRequest
{
[Required]
[StringLength(50, MinimumLength = 3)]
public required string Username { get; set; }
[Required]
[StringLength(128, MinimumLength = 6)]
public required string Password { get; set; }
public string? Email { get; set; }
public string? DisplayName { get; set; }
}
}