新增注册流程

This commit is contained in:
南浔 2024-11-03 22:05:07 +08:00
commit 77bd3b3475

View File

@ -31,6 +31,8 @@ namespace Apimanager_backend.Controllers
/// <returns>通用返回信息格式</returns>
[HttpPost]
public async Task<ActionResult<ResponseBase<UserInfoDto>>> Login([FromBody] UserLoginDto dto)
{
try
{
UserInfoDto user = await authService.LoginAsync(dto.UserName, dto.Password);
//生成token
@ -155,4 +157,5 @@ namespace Apimanager_backend.Controllers
}
}
}
}