Commit Graph

20 Commits

Author SHA1 Message Date
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
c3c07ff1e7 refactor: 标准化微服务命名并添加日志配置
- 将所有微服务名称添加 aioj- 前缀 (auth-service -> aioj-auth-service)
- 更新网关路由配置以使用新的服务名称
- 为所有服务添加 logback-spring.xml 日志配置
- 更新 .gitignore 排除 uploads 和 logs 目录

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-18 15:49:38 +08:00
93759b4a1a fix: 更新AuthServiceImpl实现
Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-12 02:03:12 +08:00
a4575cebd4 refactor: 重构安全架构,提取通用安全模块到common-security
- 将JwtAuthenticationFilter、JwtUtil、JwtProperties从auth服务移至common-security模块
- 新增common-security通用安全模块,提供JWT认证、权限验证等核心安全功能
- 重命名SecurityConfiguration为AuthSecurityConfiguration,使用common-security的filter
- 新增JacksonConfiguration配置类,统一JSON序列化配置
- 新增头像更新功能AvatarUpdateRequestDTO
- 移除冗余的UserLoginResponseDTO类
- 更新各服务模块的依赖配置以引入common-security模块
- 新增README.md项目说明文档

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-12 01:54:21 +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
47a468096d feat: 实现邮箱验证码和邮箱绑定功能
- 添加邮件发送服务实现(EmailService/EmailServiceImpl)
- 新增发送验证码、绑定邮箱、解绑邮箱接口
- 用户实体新增邮箱相关字段(userEmail/userEmailVerified)
- 添加邮件配置和JavaMailSender Bean
- 放行邮箱验证码接口(/v1/user/email/send-code)
- 新增ContextHolderUtils工具类用于获取当前用户上下文
- 完善Swagger文档注解

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-09 23:53:19 +08:00
fc72acf490 feat: 更新配置文件和代码,优化Swagger文档和负载均衡支持 2026-01-08 01:15:56 +08:00
05aeef2f79 fix: 网关聚合文档实现 2026-01-08 00:50:32 +08:00
9a20a52afb fix: 放行文档 2026-01-08 00:50:12 +08:00
4a4a010f83 feat: 添加swagger公共模块并重构API文档依赖
- 新增 aioj-backend-common-swagger 模块用于统一管理API文档相关依赖
- 从 BOM 中移除 knife4j 依赖,改为按需引入到各服务模块
- 更新 auth、gateway、user-service、upms 等服务的 pom.xml 配置
- 显式指定 springdoc-openapi 版本以兼容 Spring Boot 3.5.x
- 添加依赖排除以避免版本冲突

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-08 00:48:37 +08:00
6f0ee9bbf5 feat: 添加getUserInfo接口和修复相关bug
- 添加 /getUserInfo 接口,支持根据accessToken获取用户信息
- 修复 JWT subject 从 userAccount 改为 userId
- 修复 Results.failure 方法使用 getErrorMessage() 而非 getMessage()
- 移除 UserClient.getUserById 方法中的 public 修饰符
- 代码格式化:统一缩进和代码风格

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-07 20:16:19 +08:00
cacf7ed820 feat: 添加token过期时间字段到登录响应
将UserLoginResponseDTO中的expire字段拆分为accessTokenExpireTime和refreshTokenExpireTime,提高API响应的明确性和可用性。

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-06 22:10:53 +08:00
d353735d1b 实现oauth2 2025-12-14 17:47:08 +08:00
63d0528af4 fix: 修复网关启动找不到服务的问题,修复jwt问题,修复自动导入失败问题。 2025-12-14 15:02:24 +08:00
4912e48922 fix: 确保项目可以启动 2025-12-12 23:50:55 +08:00
lirui
d89960f51c feat: 添加代码格式化 2025-11-25 13:53:29 +08:00
7a3d3a06ba fix: 重新设计依赖,添加多个模块 2025-11-24 23:42:00 +08:00
aba1e36e03 fix: 修复网关异常😡缺loadbalacner依赖导致的503,然后把auth服务写一下 2025-11-21 00:03:00 +08:00
3603d450e8 feat: 实现刷新token逻辑 2025-11-20 23:13:33 +08:00
c03876e29e refactor: 拆分出认证服务 2025-11-20 22:43:05 +08:00