[feature] 建立鉴权项目结构

This commit is contained in:
lichx
2024-10-30 17:52:22 +08:00
parent 8c019a3159
commit d33ff74a51
23 changed files with 694 additions and 0 deletions
@@ -0,0 +1,10 @@
using SiteManagementSystem_SoftwareEngineering_.Entity;
namespace SiteManagementSystem_SoftwareEngineering_.Interface
{
public interface ITokenFactory
{
public string CreateAccessToken(User user);
public string CreateRefreshToken(User user);
}
}
@@ -0,0 +1,10 @@
using SiteManagementSystem_SoftwareEngineering_.Entity;
namespace SiteManagementSystem_SoftwareEngineering_.Interface
{
public interface IUserManageService
{
public void AddUser(User user);
public (bool, string) IsUserExist(ref User user);
}
}