mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-06-09 17:39:37 +08:00
Initial commit
This commit is contained in:
15
Services/Interface/IUserService.cs
Normal file
15
Services/Interface/IUserService.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Foxel.Models.DataBase;
|
||||
using Foxel.Models.Request;
|
||||
using Foxel.Models.Request.Auth;
|
||||
|
||||
namespace Foxel.Services.Interface;
|
||||
|
||||
public interface IUserService
|
||||
{
|
||||
Task<(bool success, string message, User? user)> RegisterUserAsync(RegisterRequest request);
|
||||
Task<(bool success, string message, User? user)> AuthenticateUserAsync(LoginRequest request);
|
||||
Task<string> GenerateJwtTokenAsync(User user);
|
||||
Task<User?> GetUserByIdAsync(int userId);
|
||||
Task<(bool success, string message, User? user)> FindOrCreateGitHubUserAsync(
|
||||
string githubId, string githubLogin, string? email);
|
||||
}
|
||||
Reference in New Issue
Block a user