2024-11-14 12:06:40 +08:00
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
2024-11-15 11:37:55 +08:00
|
|
|
|
using WcsMain.ApiClient.AGV.Dto;
|
2024-11-14 12:06:40 +08:00
|
|
|
|
using WcsMain.ApiServe.ControllerFilter;
|
2024-11-15 11:37:55 +08:00
|
|
|
|
using WcsMain.ApiServe.Dto.AGV;
|
2024-11-14 23:06:18 +08:00
|
|
|
|
using WcsMain.ApiServe.Service.AGVService;
|
2024-11-14 12:06:40 +08:00
|
|
|
|
|
|
|
|
|
|
namespace WcsMain.ApiServe.Controllers.AGVController;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// AGV接口服务
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/agv")]
|
|
|
|
|
|
[ApiController]
|
|
|
|
|
|
[ServiceFilter<ResponseFilterAttribute>]
|
2024-11-14 23:06:18 +08:00
|
|
|
|
public class AGVController(AGVService agvService) : ControllerBase
|
2024-11-14 12:06:40 +08:00
|
|
|
|
{
|
2024-11-14 23:06:18 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// AGV 任务的回告
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost("taskCallBack")]
|
2024-11-25 10:46:38 +08:00
|
|
|
|
public AGVResponseLayout<AGVResponseLayout<object>> TaskCallBack([FromBody] Dto.AGV.AGVRequestLayout<AGVRequestBodyLayout<AGVNoVeBuckMoveRequest>> request) => agvService.TaskCallBack(request);
|
2024-11-14 12:06:40 +08:00
|
|
|
|
|
|
|
|
|
|
|
2024-11-25 10:46:38 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// AGV在点位请求动作
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost("requestAction")]
|
|
|
|
|
|
public AGVResponseLayout<AGVResponseLayout<object>> RequestAction([FromBody] Dto.AGV.AGVRequestLayout<AGVRequestBodyBaseLayout<AGVRequestActionRequest>> request) => agvService.RequestAction(request);
|
2024-11-14 12:06:40 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|