- 责任链校验系统 * 题目创建参数校验(标题、内容、难度、判题配置、标签) * 题目编辑参数校验(可选字段校验) * 题目更新参数校验(管理员、存在性校验) * 题目提交参数校验(存在性、状态、语言、代码安全) - Sentinel 流量控制 * 添加 Sentinel 依赖和配置 * 题目提交接口添加限流注解和降级处理 - 数据模型优化 * QuestionResponseDTO 返回对象类型(JudgeConfig、JudgeCase) * 实现 Entity 与 DTO 的 JSON 转换 - 接口文档 * 生成博客服务完整 API 文档 Co-Authored-By: Claude <noreply@anthropic.com>
98 lines
3.6 KiB
XML
98 lines
3.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<groupId>cn.meowrain.aioj</groupId>
|
|
<artifactId>ai-oj</artifactId>
|
|
<version>${revision}</version>
|
|
</parent>
|
|
|
|
<artifactId>aioj-backend-question-service</artifactId>
|
|
<packaging>jar</packaging>
|
|
<description>AIOJ 题目服务</description>
|
|
|
|
|
|
<dependencies>
|
|
<!-- ==================== API文档 ==================== -->
|
|
<dependency>
|
|
<groupId>org.springdoc</groupId>
|
|
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.xiaoymin</groupId>
|
|
<artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
|
|
</dependency>
|
|
|
|
<!-- ==================== 内部模块 ==================== -->
|
|
<dependency>
|
|
<groupId>cn.meowrain.aioj</groupId>
|
|
<artifactId>aioj-backend-common-core</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>cn.meowrain.aioj</groupId>
|
|
<artifactId>aioj-backend-common-log</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>cn.meowrain.aioj</groupId>
|
|
<artifactId>aioj-backend-common-mybatis</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>cn.meowrain.aioj</groupId>
|
|
<artifactId>aioj-backend-common-security</artifactId>
|
|
</dependency>
|
|
|
|
<!-- ==================== Web ==================== -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
|
|
<!-- ==================== Redis & 缓存 ==================== -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-data-redis</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.session</groupId>
|
|
<artifactId>spring-session-data-redis</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-cache</artifactId>
|
|
</dependency>
|
|
|
|
<!-- ==================== 数据库 ==================== -->
|
|
<dependency>
|
|
<groupId>com.mysql</groupId>
|
|
<artifactId>mysql-connector-j</artifactId>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
|
|
<!-- ==================== Spring Cloud 服务发现 ==================== -->
|
|
<dependency>
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Sentinel 流量控制-->
|
|
<dependency>
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
|
|
</dependency>
|
|
<!--Sentinel数据源 - 持久化规则到Nacos-->
|
|
<dependency>
|
|
<groupId>com.alibaba.csp</groupId>
|
|
<artifactId>sentinel-datasource-nacos</artifactId>
|
|
</dependency>
|
|
|
|
<!-- ==================== 测试 ==================== -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
</project> |