Commit Graph

14 Commits

Author SHA1 Message Date
TsMask
33b95a6e30 fix:: 请求响应码用常量 2025-06-07 16:32:04 +08:00
TsMask
80d612c56c Refactor error handling in system and trace controllers
- Updated error response codes for various validation errors from 400 to 422 to better reflect the nature of the errors.
- Changed error messages for empty parameters (e.g., userId, menuId, roleId) to use a consistent error code format.
- Improved error handling in the IPerf, Ping, and WS controllers to provide more informative error messages.
- Ensured that all controllers return appropriate error messages when binding JSON or query parameters fails.
2025-04-27 16:38:19 +08:00
TsMask
56991a0b49 feat: Implement Oauth2 login log service and repository
- Added Oauth2LogLoginService for managing user authorization logs.
- Implemented methods for inserting logs, cleaning logs, and exporting log data.
- Created a new file for Oauth2 login log service.

refactor: Remove unused open_api module

- Deleted the open_api.go file as it was not utilized in the project.

fix: Update error codes in SysProfileController

- Changed error codes for binding errors and user authentication errors to more descriptive values.

fix: Update cache handling in SysConfig and SysDictType services

- Modified Redis set operations to include expiration time for cached values.

refactor: Update middleware authorization checks

- Replaced PreAuthorize middleware with AuthorizeUser across multiple routes in system and tool modules for consistency.

chore: Clean up trace and ws modules

- Updated middleware authorization in trace and ws modules to use AuthorizeUser.
2025-04-27 11:07:34 +08:00
TsMask
3380b6bfed feat: 多语言缓存管理 2025-02-24 16:44:11 +08:00
TsMask
f3c33b31ac feat: 更新多个模块以支持新的数据结构和日志格式 2025-02-20 10:08:27 +08:00
TsMask
bfe898d15f feat: swagger接口文档更新1.0.8改TokenAuth 2025-01-24 09:40:28 +08:00
TsMask
ed9aa17bc3 feat: swagger接口文档更新1.0.8 2025-01-23 15:07:22 +08:00
TsMask
2c6787aa11 fix: 缓存信息安全清理排除登录用户身份和验证码信息 2024-08-29 15:02:54 +08:00
26e9f29241 Fix: dir ems.agt change to be.ems 2024-03-06 21:00:42 +08:00
TsMask
97f80f5a33 fix: 缓存10分钟UPF总流量查询 2024-02-05 18:32:48 +08:00
TsMask
8f569924e3 feat: 缓存信息key字典多语言翻译 2024-02-05 14:34:05 +08:00
TsMask
d52945c946 feat: 监控模块多语言 2023-11-20 18:54:59 +08:00
TsMask
d456b735fb style: 错误信息英文返回-monitor 模块路由 2023-11-08 14:57:08 +08:00
TsMask
40a32cb67f feat: 合并Gin_Vue 2023-10-16 17:10:38 +08:00