You've already forked FrameTour-BE
feat(puzzle): 添加拼图边缘渲染功能
- 集成 PuzzleEdgeWorkerIpInterceptor 拦截器进行 IP 校验 - 添加 PuzzleEdgeWorkerSecurityProperties 配置类 - 创建 PuzzleEdgeRenderTaskController 提供边缘渲染接口 - 添加多种 DTO 类用于边缘渲染任务数据传输 - 创建 PuzzleEdgeRenderTaskEntity 实体和 Mapper 接口 - 实现 PuzzleEdgeRenderTaskService 核心服务逻辑 - 重构 PuzzleGenerateServiceImpl 使用边缘渲染服务 - 移除原有的线程池执行器和同步渲染逻辑 - 添加定时任务处理渲染超时和重试机制 - 实现自动打印队列添加功能
This commit is contained in:
@@ -3,6 +3,7 @@ package com.ycwl.basic.config;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.databind.module.SimpleModule;
|
||||
import com.ycwl.basic.interceptor.AuthInterceptor;
|
||||
import com.ycwl.basic.puzzle.edge.interceptor.PuzzleEdgeWorkerIpInterceptor;
|
||||
import com.ycwl.basic.stats.interceptor.StatsInterceptor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
@@ -30,9 +31,13 @@ public class WebMvcConfig implements WebMvcConfigurer {
|
||||
private AuthInterceptor authInterceptor;
|
||||
@Autowired
|
||||
private StatsInterceptor statsInterceptor;
|
||||
@Autowired
|
||||
private PuzzleEdgeWorkerIpInterceptor puzzleEdgeWorkerIpInterceptor;
|
||||
|
||||
@Override
|
||||
public void addInterceptors(InterceptorRegistry registry) {
|
||||
registry.addInterceptor(puzzleEdgeWorkerIpInterceptor)
|
||||
.addPathPatterns("/puzzle/render/v1/**");
|
||||
registry.addInterceptor(authInterceptor)
|
||||
// 拦截除指定接口外的所有请求,通过判断 注解 来决定是否需要做登录验证
|
||||
.addPathPatterns("/**")
|
||||
|
||||
Reference in New Issue
Block a user