Initial commit
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
using RobotNet10.MapEditor.Shared.DTOs.Requests;
|
||||
using RobotNet10.MapManager.Data;
|
||||
|
||||
namespace RobotNet10.MapManager.Services;
|
||||
|
||||
/// <summary>
|
||||
/// Service for managing stations
|
||||
/// </summary>
|
||||
public interface IStationService
|
||||
{
|
||||
/// <summary>
|
||||
/// Create a new station
|
||||
/// </summary>
|
||||
Task<Station> CreateAsync(CreateStationRequest request);
|
||||
|
||||
/// <summary>
|
||||
/// Get all stations for a layout level
|
||||
/// </summary>
|
||||
Task<List<Station>> GetStationsByLevelAsync(Guid layoutLevelId, bool includeInteractionNodes = true);
|
||||
|
||||
/// <summary>
|
||||
/// Get station by ID
|
||||
/// </summary>
|
||||
Task<Station?> GetByIdAsync(Guid stationId, bool includeInteractionNodes = true);
|
||||
|
||||
/// <summary>
|
||||
/// Update station
|
||||
/// </summary>
|
||||
Task<Station> UpdateAsync(Guid stationId, UpdateStationRequest request);
|
||||
|
||||
/// <summary>
|
||||
/// Delete station (cascade delete interaction nodes, but NOT the linked nodes)
|
||||
/// </summary>
|
||||
Task<bool> DeleteAsync(Guid stationId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user