| | |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEAWCS_Common; |
| | | using WIDESEAWCS_DTO; |
| | | using WIDESEAWCS_DTO.RGV.FOURBOT; |
| | | using WIDESEAWCS_ITaskInfoService; |
| | | |
| | | namespace WIDESEAWCS_Server.Controllers.AGV |
| | | { |
| | |
| | | [ApiController] |
| | | public class KHAGVController : ControllerBase |
| | | { |
| | | private readonly ITaskService _taskService; |
| | | |
| | | public KHAGVController(ITaskService taskService) |
| | | { |
| | | _taskService = taskService; |
| | | } |
| | | /// <summary> |
| | | /// ä»»å¡ç¶ææ´æ° |
| | | /// </summary> |
| | | /// <param name="taskDTOs"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("UpdateTaskStatus"), AllowAnonymous] |
| | | public HIKROBOTReturn UpdateTaskStatus([FromBody] object TaskDTO) |
| | | { |
| | | HIKROBOTReturn returnHK = new HIKROBOTReturn(); |
| | | var take = _taskService.UpdateTaskStatus(TaskDTO, DeviceTypeEnum.YuanLiJuHe); |
| | | if (take.Status) |
| | | { |
| | | returnHK.code = "SUCCESS"; |
| | | returnHK.message = "succ"; |
| | | } |
| | | else |
| | | { |
| | | returnHK.code = "404"; |
| | | returnHK.message = take.Message; |
| | | } |
| | | |
| | | return returnHK; |
| | | } |
| | | } |
| | | } |