// GET: /<controller>/
        public async Task <IActionResult> auth(ThirdPaltforms plat)
        {
            var urlRes = await ApiUtil.RestSnsApi <ResultMo <string> >("/oauth/getoauthurl", null, HttpMothed.GET);

            if (urlRes.IsSuccess())
            {
                return(Redirect(urlRes.data));
            }
            return(Content(urlRes.msg));
        }
        public ResultMo <string> GetOauthUrl(ThirdPaltforms plat, string redirectUrl, string state, AuthClientType type)
        {
            var url = _OauthApi.GetAuthorizeUrl(redirectUrl, state, type);

            return(new ResultMo <string>(url));
        }