public object Login([FromBody] UserDto user)
        {
            var userResult = _userAppService.Login(user.Account, user.Password);
            var result     = new object();

            if (userResult != null)
            {
                //set序列化,加入值
                //HttpContext.Session.SetString("currentUser", JsonConvert.SerializeObject(userResult));
                JWTUtil _jwtUtil = new JWTUtil();
                var     token    = _jwtUtil.GetJwt(userResult.Account, _configuration);
                string  compName = _commonAppService.GetCompName(userResult.CompanyId);
                result = new
                {
                    isSuccess = true,
                    message   = "登录成功!",
                    user      = userResult,
                    compName,
                    menu = _userAppService.GetMenu(userResult.PositionId),
                    token
                };
            }
            else
            {
                result = new
                {
                    isSuccess = true,
                    message   = "登录失败!"
                };
            }
            return(result);
        }