| | |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEAWCS_Common; |
| | | using WIDESEAWCS_DTO; |
| | | using WIDESEAWCS_DTO.AGV.HIKROBOT; |
| | | using WIDESEAWCS_DTO.RGV.FOURBOT; |
| | | using WIDESEAWCS_DTO.WMS; |
| | | using WIDESEAWCS_ITaskInfoService; |
| | | |
| | | namespace WIDESEAWCS_Server.Controllers.AGV |
| | |
| | | |
| | | return returnHK; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 娴峰悍璁惧鎶ヨ鎺ュ彛 |
| | | /// </summary> |
| | | /// <param name="taskDTOs"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("HKDeviceAlarm"), AllowAnonymous] |
| | | public HIKROBOTReturn HKDeviceAlarm([FromBody]HKDeviceAalarmDTO hKDeviceAalarmDTO) |
| | | { |
| | | HIKROBOTReturn returnHK = new HIKROBOTReturn(); |
| | | var take = _taskService.HKDeviceAlarm(hKDeviceAalarmDTO); |
| | | if (take.Status) |
| | | { |
| | | returnHK.code = "SUCCESS"; |
| | | returnHK.message = "succ"; |
| | | } |
| | | else |
| | | { |
| | | returnHK.code = "404"; |
| | | returnHK.message = take.Message; |
| | | } |
| | | |
| | | return returnHK; |
| | | } |
| | | |
| | | } |
| | | } |