mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-12-21 10:59:45 +08:00
注解处理器父接口重命名 SaAnnotationAbstractHandler -> SaAnnotationHandlerInterface
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package com.pj.satoken.custom_annotation.handler;
|
||||
|
||||
import cn.dev33.satoken.annotation.handler.SaAnnotationAbstractHandler;
|
||||
import cn.dev33.satoken.annotation.handler.SaAnnotationHandlerInterface;
|
||||
import cn.dev33.satoken.context.SaHolder;
|
||||
import cn.dev33.satoken.exception.SaTokenException;
|
||||
import com.pj.satoken.custom_annotation.CheckAccount;
|
||||
@@ -15,7 +15,7 @@ import java.lang.reflect.Method;
|
||||
*
|
||||
*/
|
||||
@Component
|
||||
public class CheckAccountHandler implements SaAnnotationAbstractHandler<CheckAccount> {
|
||||
public class CheckAccountHandler implements SaAnnotationHandlerInterface<CheckAccount> {
|
||||
|
||||
// 指定这个处理器要处理哪个注解
|
||||
@Override
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.pj.satoken.custom_annotation.handler;
|
||||
|
||||
import cn.dev33.satoken.annotation.handler.SaAnnotationAbstractHandler;
|
||||
import cn.dev33.satoken.annotation.handler.SaAnnotationHandlerInterface;
|
||||
import cn.dev33.satoken.annotation.handler.SaCheckLoginHandler;
|
||||
import com.pj.satoken.StpUserUtil;
|
||||
import com.pj.satoken.custom_annotation.SaUserCheckLogin;
|
||||
@@ -14,7 +14,7 @@ import java.lang.reflect.Method;
|
||||
* @author click33
|
||||
*/
|
||||
@Component
|
||||
public class SaUserCheckLoginHandler implements SaAnnotationAbstractHandler<SaUserCheckLogin> {
|
||||
public class SaUserCheckLoginHandler implements SaAnnotationHandlerInterface<SaUserCheckLogin> {
|
||||
|
||||
@Override
|
||||
public Class<SaUserCheckLogin> getHandlerAnnotationClass() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.pj.satoken.custom_annotation.handler;
|
||||
|
||||
import cn.dev33.satoken.annotation.handler.SaAnnotationAbstractHandler;
|
||||
import cn.dev33.satoken.annotation.handler.SaAnnotationHandlerInterface;
|
||||
import cn.dev33.satoken.annotation.handler.SaCheckPermissionHandler;
|
||||
import com.pj.satoken.StpUserUtil;
|
||||
import com.pj.satoken.custom_annotation.SaUserCheckPermission;
|
||||
@@ -14,7 +14,7 @@ import java.lang.reflect.Method;
|
||||
* @author click33
|
||||
*/
|
||||
@Component
|
||||
public class SaUserCheckPermissionHandler implements SaAnnotationAbstractHandler<SaUserCheckPermission> {
|
||||
public class SaUserCheckPermissionHandler implements SaAnnotationHandlerInterface<SaUserCheckPermission> {
|
||||
|
||||
@Override
|
||||
public Class<SaUserCheckPermission> getHandlerAnnotationClass() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.pj.satoken.custom_annotation.handler;
|
||||
|
||||
import cn.dev33.satoken.annotation.handler.SaAnnotationAbstractHandler;
|
||||
import cn.dev33.satoken.annotation.handler.SaAnnotationHandlerInterface;
|
||||
import cn.dev33.satoken.annotation.handler.SaCheckRoleHandler;
|
||||
import com.pj.satoken.StpUserUtil;
|
||||
import com.pj.satoken.custom_annotation.SaUserCheckRole;
|
||||
@@ -14,7 +14,7 @@ import java.lang.reflect.Method;
|
||||
* @author click33
|
||||
*/
|
||||
@Component
|
||||
public class SaUserCheckRoleHandler implements SaAnnotationAbstractHandler<SaUserCheckRole> {
|
||||
public class SaUserCheckRoleHandler implements SaAnnotationHandlerInterface<SaUserCheckRole> {
|
||||
|
||||
@Override
|
||||
public Class<SaUserCheckRole> getHandlerAnnotationClass() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.pj.satoken.custom_annotation.handler;
|
||||
|
||||
import cn.dev33.satoken.annotation.handler.SaAnnotationAbstractHandler;
|
||||
import cn.dev33.satoken.annotation.handler.SaAnnotationHandlerInterface;
|
||||
import cn.dev33.satoken.annotation.handler.SaCheckSafeHandler;
|
||||
import com.pj.satoken.StpUserUtil;
|
||||
import com.pj.satoken.custom_annotation.SaUserCheckSafe;
|
||||
@@ -14,7 +14,7 @@ import java.lang.reflect.Method;
|
||||
* @author click33
|
||||
*/
|
||||
@Component
|
||||
public class SaUserCheckSafeHandler implements SaAnnotationAbstractHandler<SaUserCheckSafe> {
|
||||
public class SaUserCheckSafeHandler implements SaAnnotationHandlerInterface<SaUserCheckSafe> {
|
||||
|
||||
@Override
|
||||
public Class<SaUserCheckSafe> getHandlerAnnotationClass() {
|
||||
|
||||
Reference in New Issue
Block a user