20 lines
690 B
C#
20 lines
690 B
C#
using RobotNet10.FleetManager.Data;
|
|
using RobotNet10.FleetManager.Shared.DTOs.RobotModel;
|
|
|
|
namespace RobotNet10.FleetManager.Services;
|
|
|
|
/// <summary>
|
|
/// Service for managing robot models
|
|
/// </summary>
|
|
public interface IRobotModelService
|
|
{
|
|
Task<RobotModel> CreateAsync(CreateRobotModelRequest request);
|
|
Task<List<RobotModel>> GetAllAsync();
|
|
Task<RobotModel?> GetByIdAsync(Guid id);
|
|
Task<RobotModel> UpdateAsync(Guid id, UpdateRobotModelRequest request);
|
|
Task<bool> DeleteAsync(Guid id);
|
|
Task<bool> ExistsAsync(string modelName);
|
|
Task<List<RobotModel>> SearchAsync(string query);
|
|
Task<RobotModelUsageInfoDto> GetUsageInfoAsync(Guid id);
|
|
}
|