Initial commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using RobotNet10.FleetManager.Data;
|
||||
using RobotNet10.FleetManager.Shared.DTOs.Robot;
|
||||
|
||||
namespace RobotNet10.FleetManager.Services;
|
||||
|
||||
/// <summary>
|
||||
/// Service for managing robots
|
||||
/// </summary>
|
||||
public interface IRobotService
|
||||
{
|
||||
Task<Robot> CreateAsync(CreateRobotRequest request);
|
||||
Task<List<Robot>> GetAllAsync(Guid? modelId = null, Guid? mapId = null);
|
||||
Task<Robot?> GetByIdAsync(Guid id);
|
||||
Task<Robot?> GetByRobotIdAsync(string robotId);
|
||||
Task<Robot> UpdateAsync(Guid id, UpdateRobotRequest request);
|
||||
Task<bool> DeleteAsync(Guid id);
|
||||
Task<List<Robot>> GetByModelIdAsync(Guid modelId);
|
||||
Task<List<Robot>> GetByModelNameAsync(string modelName);
|
||||
Task<List<Robot>> SearchAsync(string query);
|
||||
Task<bool> ExistsAsync(string robotId);
|
||||
}
|
||||
Reference in New Issue
Block a user