using Furion.DynamicApiController;
using Nirvana.Common;
using System.Threading.Tasks;

namespace Waste.Application
{
    /// <summary>
    /// 账户接口
    /// </summary>
    public class AccountAppService: IDynamicApiController
    {
        private readonly IAccountService _accountService;

        public AccountAppService(IAccountService accountService)
        {
            _accountService = accountService;
        }
        /// <summary>
        /// 用户登录
        /// </summary>
        public async Task<ResultInfo> LoginAsync(LoginModel loginModel)
        {
          return await _accountService.LoginAsync(loginModel);
        }
    }
}
