Files
HAOVP/docs/video-common模块目录结构.md
T
Toys-A 30c17f01e9 docs: Refresh deployment and API documentation
- Align deployment guidance with the current three-node Compose topology
- Document the current frontend architecture and development workflow
- Replace the stale API list with a controller-based route index
2026-08-18 23:37:49 +08:00

917 B
Raw Blame History

video-common 模块

video-common 是后端共享库,不独立启动,也不提供 HTTP 接口。当前源代码位于 backend/video-common/src/main/java/com/nuaa/video/common。

当前职责

  • config:Feign、MinIO、MyBatis-Plus、Redis、Web MVC 配置及自动填充处理器
  • constants:通用常量与安全常量
  • exception:BusinessException 和全局异常处理
  • model:统一返回体 Result、分页请求 PageRequestDTO、基础实体 BaseEntity、状态码枚举
  • utils:JWT、Redis、MinIO、分页、日期、字符串工具

主要依赖

Spring Web、Validation、OpenFeign、Sentinel、MyBatis-Plus、MySQL Driver、Redis、MinIO、JJWT、Hutool 和 Lombok。自动配置入口仍为 src/main/resources/META-INF/spring.factories。

业务服务需依赖本模块,但不应在业务模块中复制统一响应、异常、JWT 或对象存储实现。