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