public ActionResult Register(RegistRequestDto request)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest("Invalid Request"));
            }

            //检查token权限
            var isAdmin = false;
            var user    = _authService.ParsingClaims(HttpContext.User.Claims, out var roles);

            if (roles.Contains("admin"))
            {
                isAdmin = true;
            }
            //注册管理员
            if (request.Role.ToLower().Contains("admin") && !isAdmin)
            {
                return(BadRequest("非授权用户,无法注册"));
            }

            //用户注册
            if (_authService.AddUserData(request) is null)
            {
                return(BadRequest("注册失败,检查是否已注册或其他注册信息"));
            }
            return(Ok("注册成功"));
        }