调整远程接口
This commit is contained in:
parent
e060ce3cb4
commit
0072ffe423
@ -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);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user