调整远程接口

This commit is contained in:
wanggeng 2021-09-21 20:13:08 +08:00
parent e060ce3cb4
commit 0072ffe423

View File

@ -3,7 +3,7 @@ package ink.wgink.module.oauth2.remote;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import ink.wgink.annotation.rpc.rest.RemoteService; import ink.wgink.annotation.rpc.rest.RemoteService;
import ink.wgink.annotation.rpc.rest.method.RemotePostMethod; 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; import ink.wgink.annotation.rpc.rest.params.RemoteServerParams;
/** /**
@ -19,11 +19,11 @@ import ink.wgink.annotation.rpc.rest.params.RemoteServerParams;
@RemoteService @RemoteService
public interface IAccessTokenRemoteService { public interface IAccessTokenRemoteService {
@RemotePostMethod("/oauth_client/token") @RemotePostMethod("/oauth2_client/token")
JSONObject getAccessToken(@RemoteServerParams String server, JSONObject getAccessToken(@RemoteServerParams String server,
@RemoteQueryParams("grant_type") String grantType, @RemoteFormParams("grant_type") String grantType,
@RemoteQueryParams("client_id") String clientId, @RemoteFormParams("client_id") String clientId,
@RemoteQueryParams("client_secret") String clientSecret, @RemoteFormParams("client_secret") String clientSecret,
@RemoteQueryParams("scope") String scope); @RemoteFormParams("scope") String scope);
} }