using Nirvana.Common.ApiBase;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YBDevice.Entity;

namespace YBDevice.Application
{
    /// <summary>
    /// 账户管理
    /// </summary>
    public interface IAccountService
    {
        /// <summary>
        /// 账户登录
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<ResultInfo> LoginAsync(LoginModel model);
        /// <summary>
        /// 重置密码
        /// </summary>
        /// <param name="id">用户ID</param>
        /// <param name="pwd">重置的密码</param>
        /// <returns></returns>
        Task<ResultInfo> RevicePasswordAsync(int id, string pwd);
        /// <summary>
        /// 修改密码
        /// </summary>
        /// <param name="oldpwd"></param>
        /// <param name="newpwd"></param>
        /// <param name="repwd"></param>
        /// <returns></returns>
        Task<ResultInfo> ChangePwdAsync(string oldpwd, string newpwd, string repwd);
        /// <summary>
        /// 越权登录
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<ResultInfo> UserEnterAsync(int id);
        /// <summary>
        /// 获取用户资料
        /// </summary>
        /// <returns></returns>
        Task<ResultInfo> GetUserInfo();
    }
}
