新增注册流程

This commit is contained in:
南浔
2024-11-03 22:05:07 +08:00
@@ -31,6 +31,8 @@ namespace Apimanager_backend.Controllers
/// <returns>通用返回信息格式</returns> /// <returns>通用返回信息格式</returns>
[HttpPost] [HttpPost]
public async Task<ActionResult<ResponseBase<UserInfoDto>>> Login([FromBody] UserLoginDto dto) public async Task<ActionResult<ResponseBase<UserInfoDto>>> Login([FromBody] UserLoginDto dto)
{
try
{ {
UserInfoDto user = await authService.LoginAsync(dto.UserName, dto.Password); UserInfoDto user = await authService.LoginAsync(dto.UserName, dto.Password);
//生成token //生成token
@@ -156,3 +158,4 @@ namespace Apimanager_backend.Controllers
} }
} }
}