Commit Graph

12 Commits

Author SHA1 Message Date
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
8da9948d06 fix: 调整批量添加操作的批次大小为500 2025-03-05 19:36:46 +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
92f6ae8787 feat: 接入swagger功能 2025-01-07 17:12:35 +08:00
TsMask
8616620b02 feat: 图表功能接口优化,补充SMSC网元 2024-10-09 11:00:12 +08:00
26e9f29241 Fix: dir ems.agt change to be.ems 2024-03-06 21:00:42 +08:00
TsMask
bda59fdd33 fix: 拓扑图组图片类型都读取参数值 2024-01-09 16:38:07 +08:00
TsMask
d852bfb4f5 fix: chart路由鉴权和日志记录 2024-01-05 14:18:15 +08:00
TsMask
049ce42f77 feat: 拓扑编辑数据存储功能 2024-01-04 15:54:58 +08:00