Commit Graph

7 Commits

Author SHA1 Message Date
7db42c6c30 feat(admin): 新增博客设置及文件上传功能
- 新增博客设置数据库表结构及实体类定义
- 实现博客设置的查询与更新接口及服务层逻辑
- 实现管理端博客设置控制器,支持修改和查询博客设置详情
- 实现文件上传接口和服务,支持通过Rustfs上传文件
- 集成Rustfs客户端配置,支持与Rustfs存储系统交互
- 新增统一响应及异常处理,文件上传异常抛出自定义业务异常
- 更新错误码枚举,添加文件上传失败的错误码定义
- 增加请求参数校验,确保博客设置更新接口数据有效性
- 添加日志记录,跟踪文件上传流程及错误信息
2025-12-05 22:14:47 +08:00
0a126eb520 feat(security): implement JWT-based authentication and authorization
- Configured JWT token validation filter in security chain
- Added user role mapping with new t_user_role table and UserRole entity
- Implemented custom authentication entry point and access denied handler
- Updated UserDetailService to load user roles from database
- Added @PreAuthorize annotation support for method-level security
- Refactored build scripts to use java-library plugin and proper dependency scope
- Enhanced SQL schema with user role table and improved table comments
- Added global exception handler for AccessDeniedException
- Introduced ResponseCodeEnum constants for unauthorized and forbidden access
- Integrated TokenAuthenticationFilter into Spring Security filter chain
2025-11-29 15:19:35 +08:00
de52e2816c feat(jwt): implement JWT-based authentication system 2025-11-29 12:01:09 +08:00
894a1c5d07 feat(user): add user entity and repository with JPA integration 2025-11-29 09:38:24 +08:00
3eb651e039 feat(common): add exception handling and response utilities
backend project initial!!!
2025-11-26 20:24:31 +08:00
531d99b3df feat(common): add API operation logging with AOP and trace ID tracking 2025-11-26 20:08:48 +08:00
d689a39a98 feat(project): initialize Spring Boot weblog project with Gradle modules 2025-11-26 19:29:21 +08:00