From 0072ffe423276398776d8b4f3a8999406f9c0dda Mon Sep 17 00:00:00 2001 From: wanggeng <450292408@qq.com> Date: Tue, 21 Sep 2021 20:13:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=BF=9C=E7=A8=8B=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../oauth2/remote/IAccessTokenRemoteService.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/module-oauth2-client/src/main/java/ink/wgink/module/oauth2/remote/IAccessTokenRemoteService.java b/module-oauth2-client/src/main/java/ink/wgink/module/oauth2/remote/IAccessTokenRemoteService.java index 67966cb3..a95b7ba7 100644 --- a/module-oauth2-client/src/main/java/ink/wgink/module/oauth2/remote/IAccessTokenRemoteService.java +++ b/module-oauth2-client/src/main/java/ink/wgink/module/oauth2/remote/IAccessTokenRemoteService.java @@ -3,7 +3,7 @@ package ink.wgink.module.oauth2.remote; import com.alibaba.fastjson.JSONObject; import ink.wgink.annotation.rpc.rest.RemoteService; import ink.wgink.annotation.rpc.rest.method.RemotePostMethod; -import ink.wgink.annotation.rpc.rest.params.RemoteQueryParams; +import ink.wgink.annotation.rpc.rest.params.RemoteFormParams; import ink.wgink.annotation.rpc.rest.params.RemoteServerParams; /** @@ -19,11 +19,11 @@ import ink.wgink.annotation.rpc.rest.params.RemoteServerParams; @RemoteService public interface IAccessTokenRemoteService { - @RemotePostMethod("/oauth_client/token") + @RemotePostMethod("/oauth2_client/token") JSONObject getAccessToken(@RemoteServerParams String server, - @RemoteQueryParams("grant_type") String grantType, - @RemoteQueryParams("client_id") String clientId, - @RemoteQueryParams("client_secret") String clientSecret, - @RemoteQueryParams("scope") String scope); + @RemoteFormParams("grant_type") String grantType, + @RemoteFormParams("client_id") String clientId, + @RemoteFormParams("client_secret") String clientSecret, + @RemoteFormParams("scope") String scope); }