a34168ef75
feat: 添加流控
2026-01-26 23:12:53 +08:00
5681b6bcef
feat: 实现题目服务完整校验责任链和流量控制
...
- 责任链校验系统
* 题目创建参数校验(标题、内容、难度、判题配置、标签)
* 题目编辑参数校验(可选字段校验)
* 题目更新参数校验(管理员、存在性校验)
* 题目提交参数校验(存在性、状态、语言、代码安全)
- Sentinel 流量控制
* 添加 Sentinel 依赖和配置
* 题目提交接口添加限流注解和降级处理
- 数据模型优化
* QuestionResponseDTO 返回对象类型(JudgeConfig、JudgeCase)
* 实现 Entity 与 DTO 的 JSON 转换
- 接口文档
* 生成博客服务完整 API 文档
Co-Authored-By: Claude <noreply@anthropic.com >
2026-01-26 23:10:19 +08:00
c06cfc10ee
refactor: use DTOs in QuestionController API responses
...
- Change getQuestion endpoint to return QuestionResponseDTO instead of Question entity
- Change listQuestions endpoint to return Page<QuestionResponseDTO> instead of Page<Question>
- Simplify createQuestion endpoint by using createQuestionWithChain method directly
- Add chain-related DTOs for question processing pipeline
Co-Authored-By: Claude <noreply@anthropic.com >
2026-01-26 21:58:06 +08:00
be709efa2e
refactor: improve question service entity types and security config
...
- Change Question entity time fields from Date to LocalDateTime for Java 8+ time API consistency
- Add auto-fill annotation for updateTime field in Question and QuestionSubmit entities
- Simplify Serializable import in QuestionQueryRequestDTO
- Temporarily set SecurityConfiguration to permit all requests for development
- Remove generated .flattened-pom.xml build artifacts from version control
Co-Authored-By: Claude <noreply@anthropic.com >
2026-01-26 21:57:08 +08:00
17f58a7b45
feat: 添加响应体对象
2026-01-21 22:55:14 +08:00
cf0e326b0c
feat: 实现题目服务基础架构
...
- 创建题目服务模块 aioj-backend-question-service
- 实现 Question、TestCase、QuestionSubmit 实体类
- 实现 RESTful 风格的 Controller 接口
- 添加完善的 Swagger 注解和校验
- 配置 Nacos 服务发现和 Redis 缓存
- 实现分页查询和条件过滤功能
Co-Authored-By: Claude <noreply@anthropic.com >
2026-01-21 22:47:36 +08:00
2e2697140c
feat :AIOJ 后端模块并更新项目结构
...
- 引入了新模块:gateway、judge service、question service、user service 和 UPMS。
- 在 gateway 和 user service 模块中创建了 package-info.java 文件用于文档说明。
- 更新了 pom.xml 文件以反映新的模块结构和依赖关系。
- 在 UserController 中实现了基本的用户资料管理端点。
- 为每个新模块添加了扁平化 POM 文件以有效管理依赖。
- 增强了项目属性,以实现更好的版本管理和模块间一致性。
2026-01-10 14:46:36 +08:00
66aa55d5c3
项目初始化
2025-11-12 23:02:53 +08:00