Finished database management and user authentication
This commit is contained in:
13
HopFrame.Api/Models/SingleValueResult.cs
Normal file
13
HopFrame.Api/Models/SingleValueResult.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
6
HopFrame.Api/Models/UserLogin.cs
Normal file
6
HopFrame.Api/Models/UserLogin.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace HopFrame.Api.Models;
|
||||
|
||||
public struct UserLogin {
|
||||
public string Email { get; set; }
|
||||
public string Password { get; set; }
|
||||
}
|
||||
7
HopFrame.Api/Models/UserRegister.cs
Normal file
7
HopFrame.Api/Models/UserRegister.cs
Normal 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; }
|
||||
}
|
||||
Reference in New Issue
Block a user