大屏登录认证
This commit is contained in:
parent
51e0b74308
commit
fd928430ba
|
|
@ -4,6 +4,7 @@ import com.common.utils.StringUtils;
|
|||
import com.common.utils.jwt.JwtUtil;
|
||||
import com.rzyc.advice.exception.TokenException;
|
||||
import org.aspectj.lang.ProceedingJoinPoint;
|
||||
import org.aspectj.lang.annotation.Around;
|
||||
import org.aspectj.lang.annotation.Aspect;
|
||||
import org.aspectj.lang.annotation.Pointcut;
|
||||
import org.slf4j.Logger;
|
||||
|
|
@ -40,7 +41,7 @@ public class LoginAspect {
|
|||
* @return
|
||||
* @throws Throwable
|
||||
*/
|
||||
// @Around("login()")
|
||||
@Around("login()")
|
||||
public Object doAround(ProceedingJoinPoint proceedingJoinPoint) throws Throwable {
|
||||
//操作日志
|
||||
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ public class AuthController extends BaseController{
|
|||
private static final String unitId = "06623f79-19bb-48d7-8257-3f1d9545a827";
|
||||
|
||||
//岗位id
|
||||
private static final String postId = "eca772e5-516e-45ee-afc6-0e5da78895be";
|
||||
private static final String postId = "ca97b44c-6384-4b48-8ab8-b4530bf09601";
|
||||
|
||||
//默认密码
|
||||
private static final String passwd = "gz123456@";
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import com.common.utils.model.Pager;
|
|||
import com.common.utils.model.SingleResult;
|
||||
import com.github.pagehelper.Page;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.rzyc.advice.LoginAuth;
|
||||
import com.rzyc.bean.StorageData;
|
||||
import com.rzyc.bean.bigdata.*;
|
||||
import com.rzyc.bean.bigdata.check.EntSpread;
|
||||
|
|
@ -680,6 +681,20 @@ public class BigdataController extends com.rzyc.controller.BaseController {
|
|||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 大屏页面账号权限验证
|
||||
* @version v1.0
|
||||
* @author dong
|
||||
* @date 2023/12/21 10:05
|
||||
*/
|
||||
@ApiOperation(value = "大屏页面账号权限验证", notes = "大屏页面账号权限验证")
|
||||
@GetMapping("/userAuthVerify")
|
||||
@ResponseBody
|
||||
@LoginAuth
|
||||
public SingleResult<String> userAuthVerify()throws Exception{
|
||||
SingleResult<String> result = new SingleResult<>();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user