132 Commits

Author SHA1 Message Date
d31e47d1f8 feat(dto): Added DTO classes related to pagination query and delete requests
- The SortDirection enumeration class has been added to sort directions
- Added the PageQueryReq pagination query request class
- Added the DeleteByIdsReq deletion request class
- Added the DynamicSpecificationBuilder dynamic query building tool class
- Added the PageResult pagination result class
- Added the R Unified Response Encapsulation class
- Added the SortCondition sorting condition class
- Added relevant internationalization resource files
2025-05-28 23:46:48 +08:00
b41d9b5c46 build: Delete deprecated public modules
- Remove the forgeboot-common-result module
- Delete the relevant source code files and build configurations
- Includes modules: API, IMPL, build.gradle.kts, etc
2025-05-28 21:58:48 +08:00
b58cb6b339 build(gradle): Update the project build configuration
- Remove invalid Maven repositories
- Add the Kotlin kapt plugin
- Modify the version number increment rule
- Update the submodule name and structure
- Adjusted the inclusion of the internationalization (i18n) and trace modules
- Remove references to common modules
2025-05-28 21:58:18 +08:00
b44b5a1570 feat(i18n): Refactored the internationalization module and added Gradle plugin support
- Added I18nKeyGenPlugin Gradle plugin for generating internationalization key files - Refactoring the internationalization module to separate the API and implementation code
- Updated the project structure to create new submodules to support internationalization
- Modify the build configuration to add the necessary dependencies and properties
2025-05-28 21:57:51 +08:00
48228574be refactor(trace): Refactoring the tracking module and migrating to a new location
- Migrated the RequestIdProvider interface from the forgeboot-common-result module to the forgeboot-trace-api module
- Refactored the TraceAutoConfiguration class to use a new package structure
- Create the forgeboot-trace-api, forgeboot-trace-autoconfigure, and forgeboot-trace-impl modules
- Update the location of the relevant classes and files to accommodate the new module structure
2025-05-28 21:56:57 +08:00
88f016dad2 feat(webmvc): Add API suffix configuration and optimize version mapping - Rename VersionProperties to WebMvcVersionProperties
- Add the apiSuffix property to configure the API suffix
- Update VersionAutoConfiguration and ApiVersionRequestMappingHandlerMapping to support the new configuration
- Optimized the version mapping logic to support the combination of prefix and suffix
2025-05-16 12:11:12 +08:00
0ca32efc02 feat(version): The API version management feature is optimized
- Adjust the VersionAutoConfiguration class to move dependency injection into the method parameters
- Add Int.MIN_VALUE as the priority of the API version request mapping, ensuring that it is higher than the default mapping
- Change the configuration prefix of VersionProperties to "forgeboot.version"
2025-05-09 21:35:16 +08:00
b1811f5941 refactor(webmvc): Refactoring the cross-domain configuration of version request mappings - Removed the injectCors method in the VersionAutoConfiguration class
- Set corsConfigurationSource directly in the apiVersionRequestMappingHandlerMapping method
- Removed unnecessary mapping attributes
2025-05-09 20:30:17 +08:00
ae09ddbd8a refactor(webmvc): Optimized the creation logic of API version request mapping handler mappings
- After you create an ApiVersionRequestMappingHandlerMapping instance, assign it to the mapping variable
- This change may help to better manage request mapping, handler mapping, and improve maintainability of your code
2025-05-09 20:17:29 +08:00
f13b21e640 feat(version): Add log output to track cross-domain configuration injections
- Added log output to the injectCors function to log when the cross-domain configuration is injected
2025-05-09 19:53:51 +08:00
da3bd2f714 refactor(forgeboot-webmvc): Removing the unused WebMvcConfigurer import in VersionAutoConfiguration removes the unused WebMvcConfigurer import statement from the VersionAutoConfiguration.kt file, simplifying the structure of the code and improving the readability of the code. 2025-05-09 19:51:41 +08:00
051c0e44da refactor(forgeboot-webmvc): 移除 VersionAutoConfiguration 中未使用的 WebMvcConfigurer 导入移除了 VersionAutoConfiguration.kt 文件中未使用的 WebMvcConfigurer 导入语句,简化了代码结构并提高了代码的可读性。 2025-05-09 18:07:41 +08:00
b2ce2c46dd build(env): Updated the Gitea repository environment variable reference
- Change the "GEWUYOU_GITEA_HOST" environment variable to "GITEA_HOST"
- change "GEWUYOU_GITEA_TOKEN" environment variable to "GITEA_TOKEN"
2025-05-09 18:00:34 +08:00
0920a83e1c feat(version): Cross-domain configuration is supported for API version request mappings
- Inject VersionProperties and CorsConfigurationSource in VersionAutoConfiguration
- Updated the apiVersionRequestMappingHandlerMapping method to add support for cross-origin configuration
- Remove unnecessary comments from R classes
2025-05-09 17:40:47 +08:00
9cdc962d9a refactor(forgeboot-common):Refactoring the Unified Response Encapsulation Class R
- Removed unnecessary comments and redundant code
- Optimized how success and failure response objects are created - added a new extension field extra to save extension information
- Implemented the toMutableFlatMap and toFlatMap methods to convert the response object to Map
- Refactored the way ResultExtender is used to improve scalability
2025-05-06 11:32:55 +08:00
gewuyou
20118cd51c refactor(result): Remove unused properties in ResponseInformation and adjust parameter naming in R.kt
- Removed the responseI8nMessageArgs property that was not used in the ResponseInformation interface
- In the R.kt file, rename the args parameter to i18bArgs to improve code readability and consistency
- Updated related function calls, using the new i18bArgs parameter
2025-05-03 19:43:30 +08:00
gewuyou
3ce3cedc0f feat(module): Added forgeboot-common module
- Add forgeboot-common result processing related submodules - Implement unified response encapsulation class R and related interfaces
- Integrated international message parsing and request ID generation function
- Update project configuration to support the construction and release of new modules
2025-05-03 17:33:17 +08:00
gewuyou
1537973803 feat(trace): Add request tracking function - Added TraceProperties class to configure tracking properties
- Implement RequestIdUtil tool class generation and storage request ID
- Add TraceAutoConfiguration Automatic Configuration Class
- Implementing RequestIdFilter and ReactiveRequestIdFilterRequestIdInterceptor interceptor support Feign clients
-Filter
- Add Feign to implement WebClientRequestIdFilter to support WebClient
- Add RequestIdTaskDecorator Decorator to support asynchronous thread pooling
- Added Request extension function to determine whether requests are skipped
2025-05-02 22:35:42 +08:00
gewuyou
6bfda9227f chore(forgeboot-webflux): Initialize project configuration
- Add .gitattributes files, set file line breaks and binary files to handle - Create .gitignore files, ignore unnecessary project files and directories
- Create a new build.gradle.kts file, configure root project properties and dependencies
2025-05-02 14:14:01 +08:00
gewuyou
15709c6516 refactor(projectStructure):Adjust dependencies and module configuration - Remove duplicate Spring Boot BOM configurations from each module
- Delete API dependencies in modules such as forgeboot-core, forgeboot-i18n
- Add submodule dependencies in the root project
- Optimize settings.gradle.kts, add forgeboot-webflux module
2025-05-02 14:13:27 +08:00
gewuyou
47691cd605 feat(webmvc): Improve the priority of API version mapping processing
Make sure it executes before all other request mapping handlers by setting the order property of ApiVersionRequestMappingHandlerMapping to Int.MIN_VALUE. This ensures that version control requests are processed first, and improves the system's response speed and efficiency.
2025-05-02 12:20:57 +08:00
gewuyou
e6f70b0e74 feat(version): Add version attribute configuration and dynamically set API prefix - Add VersionProperties class to configure version-related attributes
- Enable VersionProperties configuration in VersionAutoConfiguration
- Modify ApiVersionRequestMappingHandlerMapping to use the configured API prefix
2025-05-02 12:10:39 +08:00
gewuyou
b4c8b6036b feat(i18n): Add international support and optimize project configuration
- Added USE_CONFIGURATION_PROCESSOR project flag
- Add API dependency to Core.EXTENSION in forgeboot-core
- Rename the I18nProperties file and convert it to Java class
- Update forgeboot-i18n dependency and add configuration processor
- Add spring-boot-configuration-processor dependency in libs.versions.toml
- Update root project configuration, support configuration processor
2025-04-30 12:52:45 +08:00
gewuyou
42eadcece0 refactor(i18n):Refactoring I18nBaseException from Java to Kotlin
- Convert the I18nBaseException class from a Java file to a Kotlin file
- Optimized Kotlin syntax for class definitions and constructors
- Use val to get property values
- Added @Transient annotation to replace transient keywords in Java
2025-04-27 18:12:40 +08:00
gewuyou
59ee9e4d1b 将 .java 重命名为 .kt 2025-04-27 18:12:39 +08:00
gewuyou
e349dc785d feat(i18n): Add international support module
- Added I18nProperties configuration class to define international related properties
- Implement I18nAutoConfiguration automatic configuration class, providing international message sources and local resolvers
- Added the I18nWebConfiguration configuration class to register language switching interceptors
- Added InternalInformation and ResponseInformation interfaces to extend and provide international information to the outside world
- Implement I18nBaseException class to handle internationalization-related exceptions
- Add ReactiveLocaleResolver filter to parse language information in WebFlux requests
- Create a WebFluxLocaleResolver interface to define a local resolver for WebFlux type
- Updated project
2025-04-27 18:10:31 +08:00
gewuyou
fc8bea06b3 feat(webmvc): Add method logging and configure Spring Boot AOP
- Added MethodRecording annotation to record method execution information
- Implement MethodRecordingAspect for method recording
- Add LoggerAutoConfiguration Automatic Configuration Class
- Introduce CoroutineLogger coroutine log object - Update dependencies and configure Spring Boot AOP
2025-04-26 23:47:02 +08:00
gewuyou
c89f1f1737 build: Add Gitea Private Repository Support
- Added support for Gitea private repository in repositories.gradle.kts
- Configure the private repository address through the environment variable GEWUYOU_GITEA_HOST
- Update build.gradle.kts, optimize project configuration structure - adjust publishing configuration, remove redundant code
2025-04-26 15:51:39 +08:00
gewuyou
beacb9c856 feat(core): Added core modules and refactored WebMvc modules
- Added forgeboot-core module, including core extension functions
-Refactor the forgeboot-webmvc module and change it to Spring Boot Starter structure - Update project configuration and dependencies - Add log extension function
2025-04-26 14:52:07 +08:00
gewuyou
c22389d584 feat(webmvc): Add version control support
- Added ApiVersion annotations for version control of controllers and methods - Implement VersionAutoConfiguration automatic configuration class
- Add ApiVersionRequestMappingHandlerMapping to handle version mapping
- Update build configuration, support Spring Boot and version control
- Added Git-related configuration files
2025-04-26 14:04:44 +08:00
gewuyou
2e60505c20 feat: Initialize the Gradle build project
- Create project build scripts and configuration files
- Define module paths and project flags
- Set up Kotlin and Spring Boot plugins - Configure Maven publishing and semantic versioning plugins
- Add a source code packaging task
- Set up the project dependency repositories
- Initialize gradle-wrapper
2025-04-26 11:02:46 +08:00
GeWuYou
88759df10d
Initial commit 2025-04-25 20:55:38 +08:00