拦截器泛型替换
This commit is contained in:
parent
7bacca24a8
commit
87a9034b66
|
|
@ -17,7 +17,7 @@ import java.util.Objects;
|
|||
* @author danmo
|
||||
* @date 2024-04-17 10:13
|
||||
**/
|
||||
public class AppV2TokenHeaderInterceptor implements Interceptor<DyAppletResult> {
|
||||
public class AppV2TokenHeaderInterceptor implements Interceptor<Object> {
|
||||
|
||||
@Override
|
||||
public boolean beforeExecute(ForestRequest request) {
|
||||
|
|
@ -40,7 +40,7 @@ public class AppV2TokenHeaderInterceptor implements Interceptor<DyAppletResult>
|
|||
}
|
||||
|
||||
@Override
|
||||
public void onSuccess(DyAppletResult data, ForestRequest request, ForestResponse response) {
|
||||
public void onSuccess(Object data, ForestRequest request, ForestResponse response) {
|
||||
Interceptor.super.onSuccess(data, request, response);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ import java.util.Objects;
|
|||
* @author danmo
|
||||
* @date 2024-04-17 10:13
|
||||
**/
|
||||
public class BizTokenHeaderInterceptor implements Interceptor<DyAppletResult> {
|
||||
public class BizTokenHeaderInterceptor implements Interceptor<Object> {
|
||||
|
||||
@Override
|
||||
public boolean beforeExecute(ForestRequest request) {
|
||||
|
|
@ -47,7 +47,7 @@ public class BizTokenHeaderInterceptor implements Interceptor<DyAppletResult> {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void onSuccess(DyAppletResult data, ForestRequest request, ForestResponse response) {
|
||||
public void onSuccess(Object data, ForestRequest request, ForestResponse response) {
|
||||
Interceptor.super.onSuccess(data, request, response);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ import java.util.Objects;
|
|||
* @author danmo
|
||||
* @date 2024-04-07 15:03
|
||||
**/
|
||||
public class BodyTokenInterceptor implements Interceptor<DyResult> {
|
||||
public class BodyTokenInterceptor implements Interceptor<Object> {
|
||||
|
||||
private final Log log = LogFactory.getLog(BodyTokenInterceptor.class);
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ import javax.annotation.Resource;
|
|||
import java.util.Objects;
|
||||
|
||||
@Component
|
||||
public class ClientQueryTokenInterceptor implements Interceptor<DyResult> {
|
||||
public class ClientQueryTokenInterceptor implements Interceptor<Object> {
|
||||
private final Log log = LogFactory.getLog(ClientQueryTokenInterceptor.class);
|
||||
|
||||
@Resource
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ import javax.annotation.Resource;
|
|||
import java.util.Objects;
|
||||
|
||||
@Component
|
||||
public class ClientTokenInterceptor implements Interceptor<DySimpleResult> {
|
||||
public class ClientTokenInterceptor implements Interceptor<Object> {
|
||||
private final Log log = LogFactory.getLog(ClientTokenInterceptor.class);
|
||||
@Resource
|
||||
private AuthClient authClient;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import org.apache.commons.logging.LogFactory;
|
|||
* @author danmo
|
||||
* @date 2024-04-03 11:07
|
||||
**/
|
||||
public class NoTokenInterceptor implements Interceptor<DyResult> {
|
||||
public class NoTokenInterceptor implements Interceptor<Object> {
|
||||
private final Log log = LogFactory.getLog(NoTokenInterceptor.class);
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ import java.util.Objects;
|
|||
* @author danmo
|
||||
* @date 2024-04-07 15:03
|
||||
**/
|
||||
public class QueryTokenInterceptor implements Interceptor<DyResult> {
|
||||
public class QueryTokenInterceptor implements Interceptor<Object> {
|
||||
|
||||
private final Log log = LogFactory.getLog(QueryTokenInterceptor.class);
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ import java.util.Objects;
|
|||
* @author danmo
|
||||
* @date 2024-04-07 15:03
|
||||
**/
|
||||
public class TokenHeaderInterceptor implements Interceptor<DyResult> {
|
||||
public class TokenHeaderInterceptor implements Interceptor<Object> {
|
||||
|
||||
private final Log log = LogFactory.getLog(TokenHeaderInterceptor.class);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue