Commit graph

245 commits

Author SHA1 Message Date
smile
a3bede3e1c refactor(auth): Refactor request log interceptor configuration
- Remove the request log interceptor from the Sa-Token configuration class
- Add a separate request log configuration class, RequestLogConfigure
- Register the RequestLoggingInterceptor in the new configuration class
- Ensure the request log interceptor is applied to all paths
2025-10-27 14:35:39 +08:00
sol
54f4bc56be feat(controller): add Admin Role 2025-10-24 17:36:31 +08:00
sol
d6c0222fe4 feat(log): Request log interceptor 2025-10-24 16:22:30 +08:00
smile
7cf0d1c67e feat(auth): add request logging interceptor
- introduce RequestLoggingInterceptor
- log start time, end time and elapsed time per request
- capture HTTP method, URI, query params and handler info
- register interceptor in SaTokenConfigure
- adopt Lombok annotations to reduce boilerplate
- output error logs on exceptions
2025-10-24 15:36:35 +08:00
smile
7725976924 refactor(data): optimize data permission handling logic
- inject EntityFieldCache to retrieve entity class info
- drop reflection-based entity parsing
- fetch entity class for table directly from cache
- streamline exception handling
2025-10-24 14:51:08 +08:00
smile
6b8eb991ac chore(deps): Downgrade Spring Cloud and Alibaba versions
- Downgrade spring-cloud.version from 2023.0.4 to 2023.0.3
- Downgrade spring-cloud-alibaba.version from 2023.0.3.4 to 2023.0.1.0
2025-10-24 10:03:52 +08:00
sol
356964cb45 feat(nacos): update nacos config 2025-10-23 20:23:08 +08:00
sol
842e35f5fa feat(web): Switch to the Undertow server and optimize the thread configuration 2025-10-23 20:08:11 +08:00
sol
f2545c8016 feat(web): Switch to the Undertow server and optimize the thread configuration 2025-10-23 19:04:08 +08:00
sol
4b794615c8 feat(web): Switch to the Undertow server and optimize the thread configuration 2025-10-23 16:43:50 +08:00
sol
b62ab56891 feat(web): Switch to the Undertow server and optimize the thread configuration 2025-10-23 11:33:49 +08:00
smile
a12a377c91 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	cloud/common/common-base-web/src/main/java/com/bgasol/common/core/base/handler/PostgreSqlExceptionHandler.java
2025-10-22 09:09:49 +08:00
smile
b823e31e18 refactor(core):重构PostgreSQL异常处理器以提供更友好的错误提示
- 移除冗余的DataIntegrityViolationException处理逻辑
- 新增EntityFieldCache组件用于缓存实体字段描述信息-优化PSQLException处理逻辑,增加详细的日志记录- 改进重复键、外键约束、非空约束等错误的中文提示- 提取错误消息中的表名、字段名及详细信息用于构建用户友好提示- 使用实体类上的@Schema注解描述替换原始字段名称显示
- 增强异常处理的可读性和维护性
2025-10-22 09:08:35 +08:00
sol
ce61d3df11 feat(common):
Optimized the exception throwing logic in WebSocketHandlerImpl. Provides more detailed error information for WebSocket message sending exceptions.
2025-10-21 15:54:23 +08:00
sol
8717bf6e42 PostgreSqlExceptionHandler: remove handleDataIntegrityViolationException 2025-10-20 17:43:36 +08:00
sol
cb17d46922 MenuService: update save -> apply insert 2025-10-20 17:36:23 +08:00
sol
e50581b742 BaseController.java 2025-10-17 17:24:38 +08:00
sol
052f58657a ImageService.java 2025-10-17 16:42:45 +08:00
sol
0a695bbf70 ImageService.java 2025-10-17 14:57:42 +08:00
sol
883e02718a BaseService.java getCommonRedissonClient to private 2025-10-16 23:19:51 +08:00
sol
d97e4b59ce Edit captcha config 2025-10-16 00:22:33 +08:00
sol
c5dc221f76 Edit captcha config 2025-10-16 00:06:32 +08:00
sol
0955194554 Edit captcha config 2025-10-15 23:57:16 +08:00
sol
202432b560 Edit image_table field 2025-10-15 23:35:55 +08:00
sol
e20df50749 feat(cache): add config option to enable or disable Redis level-3 caching (disabled by default) 2025-10-15 23:08:53 +08:00
sol
1af92cb1f5 feat(cache): add config option to enable or disable Redis level-3 caching (disabled by default) 2025-10-15 23:00:03 +08:00
sol
749d70e91b Merge remote-tracking branch 'origin/main' 2025-10-14 14:18:20 +08:00
sol
e150596259 fix(auth): 调整鉴权失败处理逻辑 2025-10-14 14:18:06 +08:00
smile
528bd61d53 feat(redis): Support for multiple Redis deployment modes and connection pool configuration
- Added support for standalone, cluster, and sentinel Redis modes
- Introduced connection pool parameters such as pool size and timeout
- Upgraded Redisson to version 3.52.0
- Removed spring-boot-starter-data-redis dependency
- Refactored RedissonConfig to accommodate multiple modes
- Enhanced comments in Redis configuration files
- Changed client logout endpoint return type to BaseVoString
- Added new data model definition: BaseVoString
2025-10-11 16:21:35 +08:00
sol
3aa6967143 feat(common): Added the BaseVo Success Response Method and optimized the BaseService interface 2025-10-10 21:55:49 +08:00
sol
876fa67f69 refactor(core): Optimized database exception handling and caching logic 2025-10-10 17:37:54 +08:00
sol
51b27086d8 refactor(base):optimize BaseService 2025-10-10 15:46:18 +08:00
sol
55b6802647 refactor(service): Simplified cache query logic 2025-10-10 15:03:28 +08:00
sol
12400df890 refactor(base):Optimized the ID deduplication logic in BaseService 2025-10-10 11:20:19 +08:00
smile
973f365fd3 refactor(common): refactor PostgreSQL exception handler
- Move the postgresql dependency from common-base-model to common-base-web
- Rename GlobalExceptionHandler to PostgreSqlExceptionHandler and relocate it to the web module
- Replace @ControllerAdvice with @RestControllerAdvice
- Add @ApiResponse annotations to enrich API documentation
- Refactor error-parsing logic into the Template Method pattern to improve reusability
- Optimize parsing and user-friendly messages for all kinds of PostgreSQL exceptions
- Unify the exception-response format to enhance user experience
2025-10-09 13:58:31 +08:00
sol
28045c4f1d Merge remote-tracking branch 'origin/main' 2025-10-09 11:45:34 +08:00
sol
ceaa664722 refactor(service):Refactor the query logic of the underlying service 2025-10-09 11:45:21 +08:00
smile
15b8f11744 feat(common): add PostgreSQL database driver dependency
- Introduce the PostgreSQL driver in the common-base-model module
- Enable connectivity and operations with PostgreSQL databases
- Provide the foundational dependency for future database-related feature development
2025-10-09 11:20:58 +08:00
smile
c00541e7bb feat(common): add a global exception handler to optimize database error messages
- Introduce PostgreSQL-specific exception handling to make error messages more readable
- Parse unique-violation errors, extract the conflicting column and value, and inform the user
- Detect not-null violations and clearly indicate which fields are required
- Classify foreign-key violations, distinguishing between “referenced record missing” and “still being referenced” scenarios
- Add check-constraint hints to help users spot format or rule violations
- Parse length-exceeded errors and state the allowed maximum length
- Provide generic utilities for extracting key columns and constraint names from error messages
- Enhance logging for easier debugging and issue tracking
2025-10-02 11:07:42 +08:00
sol
4598de5752 feat(api): Add APIs for files, images, videos, and system modules 2025-09-29 17:12:27 +08:00
sol
4f240736f0 fix(service):Fixed a master-slave relationship mapping error when inserting a table 2025-09-29 15:09:39 +08:00
sol
9db790ec17 fix(base):Fixed an empty pointer exception when querying an entity based on its ID 2025-09-29 10:59:17 +08:00
sol
809706334b fix(role):Fixed a service injection issue in the role controller 2025-09-28 22:30:32 +08:00
sol
99d849e61b fix(file):Corrected the index name of the image file 2025-09-28 22:15:55 +08:00
sol
ee512e89a9 feat(core): Add bulk queries and optimize basic services 2025-09-28 22:13:22 +08:00
smile
ddb99be967 refactor(build):Restructure the build script to support layered packaging and parallel processing - Reorganize the Docker Compose volume mounting structure to support hierarchical directories
- Modify the build.sh script to enable parallel module processing
- Adjust the hierarchical decompression logic to adapt to the new directory structure
- Optimize rsync parameters to enhance file copying performance
- Update collect-layers.sh to adapt to the new layering structure
- Refactor compare-sync.sh to support automatic unpacking and module discovery
- Simplify README.md and update the user guide
2025-09-27 23:24:01 +08:00
sol
f72e108ab0 feat(tree):Optimize tree structure query logic Query the tree structure in full at one time and assemble the tree structure in memory 2025-09-27 03:08:59 +08:00
sol
3fa67bf7bf refactor(core): Removed the deleted field logic from the entity class 2025-09-27 01:49:10 +08:00
sol
41e59a2837 feat(script): Enhanced deployment scripts to support database synchronization 2025-09-26 21:19:40 +08:00
sol
ec67b2be66 feat(script): Enhanced deployment scripts to support database synchronization 2025-09-26 21:01:18 +08:00