All checks were successful
Publish Platform NuGet Packages / build (push) Successful in 26s
- 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
18 lines
732 B
C#
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);
|
|
}
|