Initial commit

This commit is contained in:
2026-07-13 09:25:40 +07:00
parent c08ff54676
commit bccfb156d7
1938 changed files with 641646 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
using RobotNet10.MapEditor.Shared.DTOs.Requests;
using RobotNet10.MapManager.Data;
namespace RobotNet10.MapManager.Services;
/// <summary>
/// Service for managing edges
/// </summary>
public interface IEdgeService
{
/// <summary>
/// Create edge with automatic node detection/creation
/// </summary>
Task<Edge> CreateAsync(CreateEdgeRequest request);
/// <summary>
/// Get all edges for a layout level
/// </summary>
Task<List<Edge>> GetEdgesByLevelAsync(Guid layoutLevelId, bool includeNodes = true, bool includeVehicleProperties = true);
/// <summary>
/// Get edge by ID
/// </summary>
Task<Edge?> GetByIdAsync(Guid edgeId, bool includeNodes = true, bool includeVehicleProperties = true);
/// <summary>
/// Update edge
/// </summary>
Task<Edge> UpdateAsync(Guid edgeId, UpdateEdgeRequest request);
/// <summary>
/// Delete edge (cascade delete orphan nodes)
/// </summary>
Task<bool> DeleteAsync(Guid edgeId);
/// <summary>
/// Delete multiple edges in a transaction
/// </summary>
Task DeleteBatchAsync(List<Guid> edgeIds);
}