using EAIAdminDAL.DTO; using GB5Shared.DTO.Framework.Login; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace EAIAdminBLL.EAIAgentRouteAdmin { public interface IEAIAgentRouteAdminBLL { Task> GetAgentRouteListAsync( string? search, LoginDTO login, CancellationToken ct = default); Task GetAgentRouteAsync( int agentRouteId, LoginDTO login, CancellationToken ct = default); /// Create or update an agent route, then push the change to gbEAI. Returns a /// localised success message, with a sync-status suffix if the gbEAI push failed, and /// always a restart-required suffix (gbEAI registers agent routes once at process /// startup — an edit here needs a gbEAI restart to actually serve traffic). Task SaveAgentRouteAsync( EAIAgentRouteAdminDTO dto, LoginDTO login, CancellationToken ct = default); /// Soft-delete an agent route, then push the delete to gbEAI. Returns a localised /// success message, with a sync-status suffix if the gbEAI push failed. Task DeleteAgentRouteAsync( int agentRouteId, LoginDTO login, CancellationToken ct = default); } }