Commit Graph

8 Commits

Author SHA1 Message Date
Chaos
a5a23a6b52 feat(auth): add user profile to auth token response
- Add jwt configuration in application.yaml
- Include user profile information in authentication response
- Implement user profile response DTO with role mapping
- Fix typo in UserProfileService interface and implementation class names
- Add pagination support for user list endpoint
- Configure MyBatis Plus interceptor for MariaDB
- Add MyBatis Plus JSQLParser dependency
- Implement page-based user retrieval with role information
- Remove obsolete MyBatis configuration class
- Update controller to use paginated user data
- Replace manual user conversion with constructor mapping
- Rename UserProfileServcie to UserProfileService consistently
2025-11-24 17:10:01 +08:00
Chaos
8fc7f6554d refactor(auth):重构认证模块并增强验证机制
- 重命名并调整 DTO 类结构,将 LoginRequest 和 RegisterRequest 迁移至 request 包- 引入 AuthLoginRequest 和 AuthRegisterRequest 并添加字段验证注解
- 更新 AuthController 使用新的 DTO 并增加 @Valid 参数校验
- 修改 AuthService 接口及实现类,接收 User 实体而非 RegisterRequest
- 添加全局异常处理器 GlobalExceptionHandler 处理参数校验和业务异常
- 新增 ErrorCode 枚举统一管理错误码和消息
- 引入 UserConverter 组件用于 DTO 到实体的转换
- 增强用户注册与登录逻辑,完善异常处理和错误提示
- 移除旧的 BadCredentialsException 捕获逻辑
- 调整 pom.xml 添加 spring-boot-starter-validation 和相关依赖
- 更新 User 实体类,添加完整字段映射和角色关联配置
- 新增 UserInfoService 及其实现,提供用户管理和密码设置功能
-优化 UserMapper 查询方法,支持联表查询用户及其角色信息
- 删除无用的 HLSController 控制器
- 完善 ImageController 文件上传逻辑并更新响应结构
- 添加用户名和密码格式验证工具类 PasswordValidate 和 UsernameValidate
2025-11-18 16:44:43 +08:00
Chaos
6ba72efe80 chore(deps): 更新Spring Boot及相关依赖版本
- 将Spring Boot相关组件从3.5.3升级至3.5.7
- 升级MyBatis Plus从3.5.12到3.5.14
- 更新Spring Web从6.2.9到6.2.13
- 添加RoleController和UserController基础类
2025-11-14 21:03:55 +08:00
Chaos
3683a9d8e0 feat(chaos): 实现视频分片上传和后台处理功能- 新增视频上传相关控制器、服务接口和实现类
- 实现了视频分片上传、合并和后台处理的逻辑
- 添加了 RabbitMQ 消息队列配置和消息转换器
-优化了 JWT 认证过滤器和日志记录
- 新增了跨域配置
2025-07-20 07:17:30 +08:00
chaos
6e5f735fcc feat(auth): 添加用户认证和 JWT 令牌管理功能
- 新增用户注册和登录接口
- 实现 JWT 令牌生成和验证逻辑
- 添加用户权限管理相关实体和 mapper
- 更新安全配置,支持 JWT 认证
-移除 log4j2 相关配置,改为使用 logback
2025-07-18 17:33:11 +08:00
chaos
baa8bb57d8 feat(chaos-api): 初始化项目基础结构
- 新增 ApiResult 类用于统一返回结果
- 添加应用配置文件和日志配置文件
- 配置 MyBatis-Plus 和 Druid 数据源
- 实现基本的安全配置,包括未授权和权限不足的处理
- 引入必要的依赖,如 lombok、fastjson2、MariaDB驱动等
2025-07-18 15:11:16 +08:00
chaos
1810632e60 feat(项目结构): 重构项目模块并添加新功能
-重命名 c_portal 模块为 chaos_api_common
- 新增 chaos_api_domain、chaos_api_interface、chaos_api_service、chaos_api_data、chaos_api_web 和 chaos_api_websocket 模块
- 更新项目依赖,包括 Spring Boot、MyBatis-Plus 和 MySQL连接器
- 移除旧的 PortalApplication 类,创建新的 ChaosApiWebApplication 类作为项目入口
2025-07-15 11:17:53 +08:00
chaos
7909cbe135 feat: 初始化项目结构和配置- 创建 Maven 项目配置文件 pom.xml
- 添加 Spring Boot 相关依赖
- 创建项目启动类 PortalApplication
- 配置 .gitignore 文件,忽略IDE和系统产生的临时文件
2025-07-14 16:02:50 +08:00