mirror of
https://github.com/239573049/FastGateway.git
synced 2026-10-17 05:20:30 +08:00
ace59e5b36
- Introduced AppJsonContext for optimized JSON serialization with source generation. - Updated ResultFilter to handle EmptyHttpResult and EmptyResult correctly. - Refactored ClusterRequestFailoverMiddleware and ProxyErrorResponseMiddleware to use DTOs for error responses. - Modified ConfigurationService to utilize the new JSON context for configuration loading and saving. - Enhanced FileStorageService to return structured DTOs instead of anonymous objects. - Updated QpsService to return structured QPS data using DTOs. - Refactored RateLimitService to return structured error responses using DTOs. - Implemented SqlRunner for lightweight ADO.NET operations, replacing Dapper for compatibility with Native AOT. - Refactored Statistics services to utilize SqlRunner for database operations, ensuring type safety and explicit parameter binding. - Updated SystemService to return structured system information using DTOs. - Enhanced StreamForwardService to return structured data for port forwarding lists.