Commit Graph

10 Commits

Author SHA1 Message Date
zyh
3847250c2b feat: 添加用户端链接状态查询接口及自动刷新逻辑
主要修改:
1. 在LinkController中新增获取用户链接状态的接口,支持通过linkId或codeNo查询。
2. 在LinkStatusService中实现用户链接状态查询逻辑,包含自动刷新和二维码更新功能。
3. 更新LinkTask实体,添加needRefresh、refreshTime、qrCreatedAt和qrExpireAt字段以支持新功能。
4. 在ScriptClient中新增检查空闲设备、选区、刷新、检查上号状态等操作的实现。
5. 更新SecurityConfig,允许用户端获取链接状态接口公开访问。

技术细节:
- 新增UserLinkStatusResponse DTO以支持用户链接状态的返回格式。
- 通过脚本端接口实现链接状态的自动刷新和二维码信息更新。
2025-08-26 18:07:44 +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
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
bc1f10381a Enhance authentication logging and update MyBatis configuration 2025-08-24 16:52:20 +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