fengling-platform/Fengling.Platform.Infrastructure/IRouteManager.cs
Kimi CLI b66b231917
All checks were successful
Publish Platform NuGet Packages / build (push) Successful in 26s
refactor: replace GwTenantRoute with GwRoute, change Id type to string
- Remove GwTenantRoute (old tenant-specific route entity)
- Add GwRoute with string Id (Guid.CreateVersion7)
- Update IRouteManager and IRouteStore interfaces
- Update PlatformDbContext configuration for new schema
- GwRoute is now global, tenant-specific routing moved to GwDestination.TenantCode

BREAKING CHANGE: Database schema change requires table recreation
2026-03-08 15:21:43 +08:00

18 lines
732 B
C#

using Microsoft.AspNetCore.Identity;
using Fengling.Platform.Domain.AggregatesModel.GatewayAggregate;
namespace Fengling.Platform.Infrastructure;
/// <summary>
/// 路由管理器接口
/// </summary>
public interface IRouteManager
{
Task<GwRoute?> FindByIdAsync(string? id, CancellationToken cancellationToken = default);
Task<IList<GwRoute>> GetAllAsync(CancellationToken cancellationToken = default);
Task<IdentityResult> CreateRouteAsync(GwRoute route, CancellationToken cancellationToken = default);
Task<IdentityResult> UpdateRouteAsync(GwRoute route, CancellationToken cancellationToken = default);
Task<IdentityResult> DeleteRouteAsync(GwRoute route, CancellationToken cancellationToken = default);
}