Commit 82c312a9 authored by suntao's avatar suntao

登陆 与 role加载 顺序调整

parent 3c3cf75c
......@@ -37,7 +37,7 @@ public class ChannelConfController {
*/
@ChannelIdInit
@PostMapping("/info")
public Result channelInfo(@RequestParam(name = "channelId", required = false) Long channelId, Integer pageNumber, Integer pageSize) {
public Result channelInfo(Long channelId, Integer pageNumber, Integer pageSize) {
return Result.buildSuccess(channelConfService.getChannelInfo(pageNumber, pageSize, channelId));
}
......
......@@ -37,6 +37,6 @@ public @interface EnableSecurity {
*
* @return
*/
int order() default Ordered.LOWEST_PRECEDENCE;
int order() default Ordered.HIGHEST_PRECEDENCE;
}
......@@ -34,13 +34,13 @@ import java.lang.reflect.Method;
@Slf4j
@Component
@Aspect
@Order(Ordered.HIGHEST_PRECEDENCE)
@Order(1)
public class RoleLoadAspect {
@Autowired
private UserSessionService userSessionService;
@Pointcut("execution(* cn.quantgroup.cashloanflowboss.api.channel.controller.*.*(..))")
@Pointcut("execution(* cn.quantgroup.cashloanflowboss.api.*.controller.*.*(..))")
private void channelRoleInit() {}
@Around(value = "channelRoleInit()")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment