/// <summary>
        /// 更新系统用户密码
        /// </summary>
        /// <param name="input">更新密码输入</param>
        /// <returns></returns>
        public async Task UpdateUserPassword(UpdatePasswordInput input)
        {
            var user = await _context.Administrator.FindAsync(input.Id);

            user.Password   = EnctypeHelper.GetEncryptedStr(input.Password);
            user.UpdateTime = DateTime.Now;
        }
        /// <summary>
        /// 管理员登录
        /// </summary>
        /// <param name="input">管理员登录输入</param>
        /// <returns>系统用户实体</returns>
        public async Task <Administrator> Login(AdminLoginInput input)
        {
            var user = await _context.Administrator.Where(i => i.LoginName == input.LoginName && i.Password == EnctypeHelper.GetEncryptedStr(input.Password)).FirstOrDefaultAsync();

            return(user);
        }