Finished database management and user authentication

This commit is contained in:
2024-07-13 16:37:36 +02:00
parent fe5b5d28eb
commit c1ac7f9972
47 changed files with 1620 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
namespace HopFrame.Api.Models;
public struct SingleValueResult<T>(T value) {
public T Value { get; set; } = value;
public static implicit operator T(SingleValueResult<T> v) {
return v.Value;
}
public static implicit operator SingleValueResult<T>(T v) {
return new SingleValueResult<T>(v);
}
}

View File

@@ -0,0 +1,6 @@
namespace HopFrame.Api.Models;
public struct UserLogin {
public string Email { get; set; }
public string Password { get; set; }
}

View File

@@ -0,0 +1,7 @@
namespace HopFrame.Api.Models;
public struct UserRegister {
public string Username { get; set; }
public string Email { get; set; }
public string Password { get; set; }
}