|
|
@ -8,6 +8,7 @@ import com.glxp.api.exception.JsonException;
|
|
|
|
import com.glxp.api.util.JwtUtils;
|
|
|
|
import com.glxp.api.util.JwtUtils;
|
|
|
|
import com.glxp.api.common.enums.ResultEnum;
|
|
|
|
import com.glxp.api.common.enums.ResultEnum;
|
|
|
|
import io.jsonwebtoken.Claims;
|
|
|
|
import io.jsonwebtoken.Claims;
|
|
|
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import org.aspectj.lang.JoinPoint;
|
|
|
|
import org.aspectj.lang.JoinPoint;
|
|
|
|
import org.aspectj.lang.annotation.Aspect;
|
|
|
|
import org.aspectj.lang.annotation.Aspect;
|
|
|
@ -28,10 +29,11 @@ import java.lang.reflect.Method;
|
|
|
|
@Aspect
|
|
|
|
@Aspect
|
|
|
|
@Component
|
|
|
|
@Component
|
|
|
|
@Slf4j
|
|
|
|
@Slf4j
|
|
|
|
|
|
|
|
@RequiredArgsConstructor
|
|
|
|
public class AuthorizeAspect {
|
|
|
|
public class AuthorizeAspect {
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
|
|
|
private AuthLicenseDao authLicenseDao;
|
|
|
|
private final AuthLicenseDao authLicenseDao;
|
|
|
|
|
|
|
|
|
|
|
|
@Pointcut("@annotation(com.glxp.api.annotation.AuthRuleAnnotation)")
|
|
|
|
@Pointcut("@annotation(com.glxp.api.annotation.AuthRuleAnnotation)")
|
|
|
|
public void adminLoginVerify() {
|
|
|
|
public void adminLoginVerify() {
|
|
|
|