Waste/Waste.Application/AccountInfo/AccountAppService.cs

27 lines
666 B
C#
Raw Permalink Normal View History

2021-04-30 14:52:42 +08:00
using Furion.DynamicApiController;
2021-05-27 16:58:40 +08:00
using Nirvana.Common;
2021-04-30 14:52:42 +08:00
using System.Threading.Tasks;
namespace Waste.Application
{
/// <summary>
/// 账户接口
/// </summary>
public class AccountAppService: IDynamicApiController
{
private readonly IAccountService _accountService;
public AccountAppService(IAccountService accountService)
{
_accountService = accountService;
}
/// <summary>
2021-05-27 16:58:40 +08:00
/// 用户登录
2021-04-30 14:52:42 +08:00
/// </summary>
2021-05-27 16:58:40 +08:00
public async Task<ResultInfo> LoginAsync(LoginModel loginModel)
2021-04-30 14:52:42 +08:00
{
2021-05-27 16:58:40 +08:00
return await _accountService.LoginAsync(loginModel);
2021-04-30 14:52:42 +08:00
}
}
}