新增注册流程
This commit is contained in:
commit
77bd3b3475
@ -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
|
||||
@ -156,3 +158,4 @@ namespace Apimanager_backend.Controllers
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user