Commit Graph

16 Commits

Author SHA1 Message Date
zyh
e9858bfec1 fix: 修复Spring Boot兼容性问题并添加链接删除功能
主要修改:
1. 降级Spring Boot版本到2.7.18以兼容MyBatis-Plus
2. 修复所有validation包导入路径 (jakarta -> javax)
3. 修复ResponseStatusException API调用
4. 降级Swagger版本以兼容Spring Boot 2.x
5. 添加单个和批量删除链接功能
6. 修复JWT认证中的Claims获取方式
7. 优化代码格式和日志输出

技术细节:
- Spring Boot: 3.3.3 -> 2.7.18
- Swagger: springdoc-openapi-starter-webflux-ui:2.3.0 -> springdoc-openapi-webflux-ui:1.7.0
- 所有javax.validation包路径修复
- 新增BatchDeleteRequest和BatchDeleteResponse DTO类
- LinkController中添加DELETE和POST批量删除接口
2025-08-26 16:43:53 +08:00
zyh
833159d1f1 Update pom.xml for MyBatis Plus integration and downgrade Spring Boot version; refactor validation imports from Jakarta to Javax; modify mappers to extend BaseMapper for CRUD operations; clean up unused MyBatis-Flex mappers; adjust application.yml for MyBatis Plus configuration. 2025-08-26 15:37:52 +08:00
zyh
bd0a9e6dd7 Add .gitignore file and remove target directory from git tracking 2025-08-26 15:21:06 +08:00
zyh
d3fe8fda7d 1 2025-08-26 15:18:14 +08:00
zyh
599ec0a36b 新增系统配置表及默认配置,更新链接生成请求DTO以支持链接数量参数,重构链接生成服务逻辑,添加链接状态查询和有效性检查接口,优化日志记录。 2025-08-26 10:33:26 +08:00
zyh
7317866f98 实现JWT身份认证机制,新增JWT认证过滤器和服务,更新链接生成接口以支持JWT验证,删除旧的用户控制器,添加JWT认证文档,增强错误处理和日志记录。 2025-08-25 21:26:16 +08:00
zyh
3f01d8590a 添加Apache Commons Codec依赖以支持SHA-256和十六进制工具,并在application.yml中新增外部脚本配置及链接过期时间设置。同时,删除不再使用的类文件以清理项目结构。 2025-08-24 20:46:35 +08:00
zyh
c3762f985e 更新账户更新请求DTO,添加用户类型、用户名和积分余额字段,并在AccountService中实现相应的验证和更新逻辑,确保用户名唯一性和积分余额的正确处理。 2025-08-24 20:00:12 +08:00
zyh
4664f1c487 添加Swagger/OpenAPI依赖并更新用户账户管理相关的API文档注释,优化用户和管理员账户控制器的接口描述,移除不必要的字段和参数,调整数据库映射以简化用户账户管理逻辑。 2025-08-24 19:21:54 +08:00
zyh
1b3ce1040a Refactor account management DTOs by removing displayName and role fields from AccountCreateRequest, AccountUpdateRequest, and AccountResponse, and updating related logic in AccountService. Adjust alwaysApply setting in zh.mdc to false. 2025-08-24 18:41:57 +08:00
zyh
f37159e1fc Refactor user account management by replacing User entity with UserAccount, updating UserController and UserService for CRUD operations, and modifying MyBatis mappers accordingly. 2025-08-24 17:42:47 +08:00
zyh
4cfd19195f Add user account management methods and update user-related mappers 2025-08-24 17:06:52 +08:00
zyh
bc1f10381a Enhance authentication logging and update MyBatis configuration 2025-08-24 16:52:20 +08:00
zyh
51d6319121 Update CORS configuration in SecurityConfig to enable custom settings 2025-08-24 15:54:44 +08:00
zyh
c65c03b933 Refactor authentication logic to unify user account handling and update database schema for user accounts 2025-08-24 15:54:21 +08:00
zyh
be437a360d first commit 2025-08-24 15:33:03 +08:00