From ddd28d81f291002e052855975af2ba087d16159b Mon Sep 17 00:00:00 2001 From: WenJY Date: Fri, 29 May 2026 14:55:39 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20adapter=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Domain/Dto/CancelTask/CancelTaskDto.cs | 69 ++ .../Dto/CancelTask/CancelTaskResultDto.cs | 40 + .../Domain/Dto/CarrierBind/CarrierBindDto.cs | 56 ++ .../Dto/CarrierBind/CarrierBindResultDto.cs | 40 + .../Domain/Dto/CarrierLock/CarrierLockDto.cs | 46 + .../Dto/CarrierLock/CarrierLockResultDto.cs | 40 + .../Dto/CarrierUnbind/CarrierUnbindDto.cs | 51 ++ .../CarrierUnbind/CarrierUnbindResultDto.cs | 40 + .../Dto/ContinueTask/ContinueTaskDto.cs | 71 ++ .../Dto/ContinueTask/ContinueTaskResultDto.cs | 41 + .../Dto/EquipmentNotify/EquipmentNotifyDto.cs | 66 ++ .../EquipmentNotifyResultDto.cs | 40 + .../Dto/GbCancelTask/GbCancelTaskDto.cs | 85 ++ .../Dto/GbCancelTask/GbCancelTaskResultDto.cs | 40 + .../Dto/GbContinueTask/GbContinueTaskDto.cs | 69 ++ .../GbContinueTask/GbContinueTaskResultDto.cs | 40 + .../Dto/GbTaskSubmit/GbTaskSubmitDto.cs | 104 +++ .../Dto/GbTaskSubmit/GbTaskSubmitResultDto.cs | 40 + .../GenAgvSchedulingTaskDto.cs | 107 +++ .../GenAgvSchedulingTaskResultDto.cs | 40 + .../Dto/MatLabelBind/MatLabelBindDto.cs | 46 + .../Dto/MatLabelBind/MatLabelBindResultDto.cs | 40 + .../Dto/MatLabelUnbind/MatLabelUnbindDto.cs | 46 + .../MatLabelUnbind/MatLabelUnbindResultDto.cs | 40 + .../Domain/Dto/PreTask/PreTaskDto.cs | 76 ++ .../Domain/Dto/PreTask/PreTaskResultDto.cs | 40 + .../Dto/QueryCarrier/QueryCarrierDto.cs | 41 + .../Dto/QueryCarrier/QueryCarrierResultDto.cs | 40 + .../Domain/Dto/QueryRobot/QueryRobotDto.cs | 41 + .../Dto/QueryRobot/QueryRobotResultDto.cs | 40 + .../Domain/Dto/QueryTask/QueryTaskDto.cs | 41 + .../Dto/QueryTask/QueryTaskResultDto.cs | 40 + .../Domain/Dto/SiteBind/SiteBindDto.cs | 86 ++ .../Domain/Dto/SiteBind/SiteBindResultDto.cs | 40 + .../Domain/Dto/SiteLock/SiteLockDto.cs | 46 + .../Domain/Dto/SiteLock/SiteLockResultDto.cs | 40 + .../Domain/Dto/TaskGroup/TaskGroupDto.cs | 82 ++ .../Dto/TaskGroup/TaskGroupResultDto.cs | 40 + .../Dto/TaskPriority/TaskPriorityDto.cs | 56 ++ .../Dto/TaskPriority/TaskPriorityResultDto.cs | 40 + .../Domain/Dto/ZoneBanish/ZoneBanishDto.cs | 81 ++ .../Dto/ZoneBanish/ZoneBanishResultDto.cs | 40 + .../Dto/ZoneBlockade/ZoneBlockadeDto.cs | 71 ++ .../Dto/ZoneBlockade/ZoneBlockadeResultDto.cs | 40 + .../Domain/Dto/ZoneHoming/ZoneHomingDto.cs | 71 ++ .../Dto/ZoneHoming/ZoneHomingResultDto.cs | 40 + .../Domain/Dto/ZonePause/ZonePauseDto.cs | 51 ++ .../Dto/ZonePause/ZonePauseResultDto.cs | 40 + .../Domain/Enum/HikRoBotStatusEnum.cs | 100 +++ .../Model/CancelTask/CancelTaskResultModel.cs | 53 ++ .../CarrierBind/CarrierBindResultModel.cs | 43 + .../CarrierLock/CarrierLockResultModel.cs | 39 + .../CarrierUnbind/CarrierUnbindResultModel.cs | 43 + .../ContinueTask/ContinueTaskResultModel.cs | 53 ++ .../EquipmentNotifyResultModel.cs | 53 ++ .../GbCancelTask/GbCancelTaskResultModel.cs | 48 + .../GbContinueTaskResultModel.cs | 53 ++ .../GbTaskSubmit/GbTaskSubmitResultModel.cs | 51 ++ .../GenAgvSchedulingTaskResultModel.cs | 48 + .../MatLabelBind/MatLabelBindResultModel.cs | 43 + .../MatLabelUnbindResultModel.cs | 39 + .../Model/PreTask/PreTaskResultModel.cs | 48 + .../QueryCarrier/QueryCarrierResultModel.cs | 93 ++ .../Model/QueryRobot/QueryRobotResultModel.cs | 109 +++ .../Model/QueryTask/QueryTaskResultModel.cs | 120 +++ .../Model/SiteBind/SiteBindResultModel.cs | 43 + .../Model/SiteLock/SiteLockResultModel.cs | 39 + .../Model/TaskGroup/TaskGroupResultModel.cs | 39 + .../TaskPriority/TaskPriorityResultModel.cs | 48 + .../Model/ZoneBanish/ZoneBanishResultModel.cs | 48 + .../ZoneBlockade/ZoneBlockadeResultModel.cs | 43 + .../Model/ZoneHoming/ZoneHomingResultModel.cs | 53 ++ .../Model/ZonePause/ZonePauseResultModel.cs | 43 + .../Service/IHikRoBotService.cs | 205 +++++ .../Service/Impl/HikRoBotService.cs | 829 ++++++++++++++++++ .../Sln.Wcs.HikRoBotAdapter.csproj | 14 + .../Util/ApiResultCodeUtil.cs | 77 ++ .../Dto/GetHoistStatus/GetHoistStatusDto.cs | 71 ++ .../GetHoistStatus/GetHoistStatusResultDto.cs | 36 + .../Dto/HoistControl/HoistControlDto.cs | 41 + .../Dto/HoistControl/HoistControlResultDto.cs | 35 + .../Dto/HoistTaskExecutor/HoistTaskExeDto.cs | 49 ++ .../HoistTaskExeResultDto.cs | 35 + .../Domain/Enum/ControlAction.cs | 29 + .../Domain/Enum/HoistStatusEnum.cs | 11 + .../GetHoistStatusResultModel.cs | 81 ++ .../HoistControl/HoistControlResultModel.cs | 44 + .../HoistTaskExeResultModel.cs | 44 + Sln.Wcs.HoistAdapter/Service/IHoistService.cs | 55 ++ .../Service/Impl/HoistService.cs | 195 ++++ .../Sln.Wcs.HoistAdapter.csproj | 14 + .../Util/ApiResultCodeUtil.cs | 73 ++ 92 files changed, 5850 insertions(+) create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/CancelTask/CancelTaskDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/CancelTask/CancelTaskResultDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/CarrierBind/CarrierBindDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/CarrierBind/CarrierBindResultDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/CarrierLock/CarrierLockDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/CarrierLock/CarrierLockResultDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/CarrierUnbind/CarrierUnbindDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/CarrierUnbind/CarrierUnbindResultDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/ContinueTask/ContinueTaskDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/ContinueTask/ContinueTaskResultDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/EquipmentNotify/EquipmentNotifyDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/EquipmentNotify/EquipmentNotifyResultDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/GbCancelTask/GbCancelTaskDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/GbCancelTask/GbCancelTaskResultDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/GbContinueTask/GbContinueTaskDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/GbContinueTask/GbContinueTaskResultDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/GbTaskSubmit/GbTaskSubmitDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/GbTaskSubmit/GbTaskSubmitResultDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/GenAgvSchedulingTask/GenAgvSchedulingTaskDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/GenAgvSchedulingTask/GenAgvSchedulingTaskResultDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/MatLabelBind/MatLabelBindDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/MatLabelBind/MatLabelBindResultDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/MatLabelUnbind/MatLabelUnbindDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/MatLabelUnbind/MatLabelUnbindResultDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/PreTask/PreTaskDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/PreTask/PreTaskResultDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/QueryCarrier/QueryCarrierDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/QueryCarrier/QueryCarrierResultDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/QueryRobot/QueryRobotDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/QueryRobot/QueryRobotResultDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/QueryTask/QueryTaskDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/QueryTask/QueryTaskResultDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/SiteBind/SiteBindDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/SiteBind/SiteBindResultDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/SiteLock/SiteLockDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/SiteLock/SiteLockResultDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/TaskGroup/TaskGroupDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/TaskGroup/TaskGroupResultDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/TaskPriority/TaskPriorityDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/TaskPriority/TaskPriorityResultDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZoneBanish/ZoneBanishDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZoneBanish/ZoneBanishResultDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZoneBlockade/ZoneBlockadeDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZoneBlockade/ZoneBlockadeResultDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZoneHoming/ZoneHomingDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZoneHoming/ZoneHomingResultDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZonePause/ZonePauseDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZonePause/ZonePauseResultDto.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Enum/HikRoBotStatusEnum.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Model/CancelTask/CancelTaskResultModel.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Model/CarrierBind/CarrierBindResultModel.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Model/CarrierLock/CarrierLockResultModel.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Model/CarrierUnbind/CarrierUnbindResultModel.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Model/ContinueTask/ContinueTaskResultModel.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Model/EquipmentNotify/EquipmentNotifyResultModel.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Model/GbCancelTask/GbCancelTaskResultModel.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Model/GbContinueTask/GbContinueTaskResultModel.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Model/GbTaskSubmit/GbTaskSubmitResultModel.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Model/GenAgvSchedulingTask/GenAgvSchedulingTaskResultModel.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Model/MatLabelBind/MatLabelBindResultModel.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Model/MatLabelUnbind/MatLabelUnbindResultModel.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Model/PreTask/PreTaskResultModel.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Model/QueryCarrier/QueryCarrierResultModel.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Model/QueryRobot/QueryRobotResultModel.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Model/QueryTask/QueryTaskResultModel.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Model/SiteBind/SiteBindResultModel.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Model/SiteLock/SiteLockResultModel.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Model/TaskGroup/TaskGroupResultModel.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Model/TaskPriority/TaskPriorityResultModel.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Model/ZoneBanish/ZoneBanishResultModel.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Model/ZoneBlockade/ZoneBlockadeResultModel.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Model/ZoneHoming/ZoneHomingResultModel.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Domain/Model/ZonePause/ZonePauseResultModel.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Service/IHikRoBotService.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Service/Impl/HikRoBotService.cs create mode 100644 Sln.Wcs.HikRoBotAdapter/Sln.Wcs.HikRoBotAdapter.csproj create mode 100644 Sln.Wcs.HikRoBotAdapter/Util/ApiResultCodeUtil.cs create mode 100644 Sln.Wcs.HoistAdapter/Domain/Dto/GetHoistStatus/GetHoistStatusDto.cs create mode 100644 Sln.Wcs.HoistAdapter/Domain/Dto/GetHoistStatus/GetHoistStatusResultDto.cs create mode 100644 Sln.Wcs.HoistAdapter/Domain/Dto/HoistControl/HoistControlDto.cs create mode 100644 Sln.Wcs.HoistAdapter/Domain/Dto/HoistControl/HoistControlResultDto.cs create mode 100644 Sln.Wcs.HoistAdapter/Domain/Dto/HoistTaskExecutor/HoistTaskExeDto.cs create mode 100644 Sln.Wcs.HoistAdapter/Domain/Dto/HoistTaskExecutor/HoistTaskExeResultDto.cs create mode 100644 Sln.Wcs.HoistAdapter/Domain/Enum/ControlAction.cs create mode 100644 Sln.Wcs.HoistAdapter/Domain/Enum/HoistStatusEnum.cs create mode 100644 Sln.Wcs.HoistAdapter/Domain/Model/GetHoistStatus/GetHoistStatusResultModel.cs create mode 100644 Sln.Wcs.HoistAdapter/Domain/Model/HoistControl/HoistControlResultModel.cs create mode 100644 Sln.Wcs.HoistAdapter/Domain/Model/HoistTaskExecutor/HoistTaskExeResultModel.cs create mode 100644 Sln.Wcs.HoistAdapter/Service/IHoistService.cs create mode 100644 Sln.Wcs.HoistAdapter/Service/Impl/HoistService.cs create mode 100644 Sln.Wcs.HoistAdapter/Sln.Wcs.HoistAdapter.csproj create mode 100644 Sln.Wcs.HoistAdapter/Util/ApiResultCodeUtil.cs diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/CancelTask/CancelTaskDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/CancelTask/CancelTaskDto.cs new file mode 100644 index 0000000..fd001cc --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/CancelTask/CancelTaskDto.cs @@ -0,0 +1,69 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Domain.CancelTask +* 唯一标识:a58b49bc-2f35-43aa-95f0-bee6bd291067 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-02-25 15:07:15 +* 版本:V1.0.0 +* 描述: +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.CancelTask +{ + /// + /// 任务取消请求参数 + /// + public class CancelTaskDto + { + /// + /// 请求编号,每个请求都要一个唯一编号, 同一个请求重复提交, 使用同一编号。; + /// + public string reqCode { get; set; } + + /// + /// 请求时间截 格式: “yyyy-MM-dd HH:mm:ss”。 + /// + public string reqTime { get; set; } + + /// + /// 客户端编号,如PDA,HCWMS等。 + /// + public string clientCode { get; set; } + + /// + /// 令牌号, 由调度系统颁发 + /// + public string tokenCode { get; set; } + + /// + /// 工作位,与RCS-2000端配置的位置名称一致。 + /// + public string forceCancel { get; set; } + + /// + /// 货架号,采用货架号触发的方式。 + /// + public string matterArea { get; set; } + + public string agvCode { get; set; } + public string taskCode { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/CancelTask/CancelTaskResultDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/CancelTask/CancelTaskResultDto.cs new file mode 100644 index 0000000..3dc65cd --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/CancelTask/CancelTaskResultDto.cs @@ -0,0 +1,40 @@ +using Sln.Wcs.Common.Domain.Dto; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.CancelTask; +using Sln.Wcs.HikRoBotAdapter.Enum; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Domain.CancelTask +* 唯一标识:1f582438-5412-4ae4-8fdf-cc1a2a990527 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-02-25 15:07:38 +* 版本:V1.0.0 +* 描述: +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.CancelTask +{ + /// + /// 任务继续返回参数 + /// + public class CancelTaskResultDto : ResultDto + { + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/CarrierBind/CarrierBindDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/CarrierBind/CarrierBindDto.cs new file mode 100644 index 0000000..e0f3a5c --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/CarrierBind/CarrierBindDto.cs @@ -0,0 +1,56 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.CarrierBind +* 唯一标识:d8c9f0h1-4019-49l0-2a19-e7b0n1o28324 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:载具绑定请求参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.CarrierBind +{ + /// + /// 载具绑定请求参数 + /// + public class CarrierBindDto + { + /// + /// 载具编号 + /// + public string CarrierCode { get; set; } + + /// + /// 站点编号 + /// + public string SiteCode { get; set; } + + /// + /// 载具方向 + /// + public int? CarrierDir { get; set; } + + /// + /// 自定义数据 + /// + public string Extra { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/CarrierBind/CarrierBindResultDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/CarrierBind/CarrierBindResultDto.cs new file mode 100644 index 0000000..11be67e --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/CarrierBind/CarrierBindResultDto.cs @@ -0,0 +1,40 @@ +using Sln.Wcs.Common.Domain.Dto; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.CarrierBind; +using Sln.Wcs.HikRoBotAdapter.Enum; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.CarrierBind +* 唯一标识:d9c0f1h2-5020-49l1-3a20-e8b1n2o39425 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:载具绑定返回参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.CarrierBind +{ + /// + /// 载具绑定返回参数 + /// + public class CarrierBindResultDto : ResultDto + { + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/CarrierLock/CarrierLockDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/CarrierLock/CarrierLockDto.cs new file mode 100644 index 0000000..9bc4c13 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/CarrierLock/CarrierLockDto.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.CarrierLock +* 唯一标识:d7c8f9h0-4028-49l9-1a28-e6b9n0o17233 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:载具锁定请求参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.CarrierLock +{ + /// + /// 载具锁定请求参数 + /// + public class CarrierLockDto + { + /// + /// 载具编号 + /// + public string CarrierCode { get; set; } + + /// + /// 调用方式 + /// + public string Invoke { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/CarrierLock/CarrierLockResultDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/CarrierLock/CarrierLockResultDto.cs new file mode 100644 index 0000000..341ddcc --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/CarrierLock/CarrierLockResultDto.cs @@ -0,0 +1,40 @@ +using Sln.Wcs.Common.Domain.Dto; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.CarrierLock; +using Sln.Wcs.HikRoBotAdapter.Enum; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.CarrierLock +* 唯一标识:d8c9f0h1-5029-49m0-2a29-e7b0n1o28334 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:载具锁定返回参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.CarrierLock +{ + /// + /// 载具锁定返回参数 + /// + public class CarrierLockResultDto : ResultDto + { + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/CarrierUnbind/CarrierUnbindDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/CarrierUnbind/CarrierUnbindDto.cs new file mode 100644 index 0000000..1842f44 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/CarrierUnbind/CarrierUnbindDto.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.CarrierUnbind +* 唯一标识:d1c2f3h4-7022-49l3-5a22-e0b3n4o51627 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:载具解绑请求参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.CarrierUnbind +{ + /// + /// 载具解绑请求参数 + /// + public class CarrierUnbindDto + { + /// + /// 载具编号 + /// + public string CarrierCode { get; set; } + + /// + /// 站点编号 + /// + public string SiteCode { get; set; } + + /// + /// 自定义数据 + /// + public string Extra { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/CarrierUnbind/CarrierUnbindResultDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/CarrierUnbind/CarrierUnbindResultDto.cs new file mode 100644 index 0000000..26e014a --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/CarrierUnbind/CarrierUnbindResultDto.cs @@ -0,0 +1,40 @@ +using Sln.Wcs.Common.Domain.Dto; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.CarrierUnbind; +using Sln.Wcs.HikRoBotAdapter.Enum; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.CarrierUnbind +* 唯一标识:d2c3f4h5-8023-49l4-6a23-e1b4n5o62728 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:载具解绑返回参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.CarrierUnbind +{ + /// + /// 载具解绑返回参数 + /// + public class CarrierUnbindResultDto : ResultDto + { + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ContinueTask/ContinueTaskDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ContinueTask/ContinueTaskDto.cs new file mode 100644 index 0000000..41892e1 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ContinueTask/ContinueTaskDto.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Domain.ContinueTask +* 唯一标识:d2278c13-5f0c-423a-b4d2-997a1aba71bc +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-02-25 15:09:47 +* 版本:V1.0.0 +* 描述: +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.ContinueTask +{ + /// + /// 任务继续请求参数 + /// + public class ContinueTaskDto + { + /// + /// 请求编号,每个请求都要一个唯一编号, 同一个请求重复提交, 使用同一编号。; + /// + public string reqCode { get; set; } + + /// + /// 请求时间截 格式: “yyyy-MM-dd HH:mm:ss”。 + /// + public string reqTime { get; set; } + + /// + /// 客户端编号,如PDA,HCWMS等。 + /// + public string clientCode { get; set; } + + /// + /// 令牌号, 由调度系统颁发 + /// + public string tokenCode { get; set; } + + /// + /// 工作位,与RCS-2000端配置的位置名称一致。 + /// + public string wbCode { get; set; } + + /// + /// 货架号,采用货架号触发的方式。 + /// + public string podCode { get; set; } + + public string agvCode { get; set; } + public string taskCode { get; set; } + public string taskSeq { get; set; } + public string nextPositionCode { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ContinueTask/ContinueTaskResultDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ContinueTask/ContinueTaskResultDto.cs new file mode 100644 index 0000000..26fa1fe --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ContinueTask/ContinueTaskResultDto.cs @@ -0,0 +1,41 @@ +using Sln.Wcs.Common.Domain.Dto; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.ContinueTask; +using Sln.Wcs.HikRoBotAdapter.Enum; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Domain.ContinueTask +* 唯一标识:5abd89da-3753-4977-8117-b4cbf9fd73d0 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-02-25 15:10:08 +* 版本:V1.0.0 +* 描述: +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.ContinueTask +{ + /// + /// 任务继续返回参数 + /// + public class ContinueTaskResultDto : ResultDto + { + + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/EquipmentNotify/EquipmentNotifyDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/EquipmentNotify/EquipmentNotifyDto.cs new file mode 100644 index 0000000..0579e88 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/EquipmentNotify/EquipmentNotifyDto.cs @@ -0,0 +1,66 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.EquipmentNotify +* 唯一标识:d1c2f3h4-1052-49o3-5a52-e0b3n4o51657 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:设备通知请求参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.EquipmentNotify +{ + /// + /// 设备通知请求参数 + /// + public class EquipmentNotifyDto + { + /// + /// 设备编号 + /// + public string EqptCode { get; set; } + + /// + /// 任务编号 + /// + public string TaskCode { get; set; } + + /// + /// 动作状态 + /// + public string ActionStatus { get; set; } + + /// + /// 站点编号 + /// + public string SiteCode { get; set; } + + /// + /// 载具信息 + /// + public string CarrierInfo { get; set; } + + /// + /// 自定义数据 + /// + public string Extra { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/EquipmentNotify/EquipmentNotifyResultDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/EquipmentNotify/EquipmentNotifyResultDto.cs new file mode 100644 index 0000000..dbef76f --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/EquipmentNotify/EquipmentNotifyResultDto.cs @@ -0,0 +1,40 @@ +using Sln.Wcs.Common.Domain.Dto; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.EquipmentNotify; +using Sln.Wcs.HikRoBotAdapter.Enum; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.EquipmentNotify +* 唯一标识:d2c3f4h5-2053-49o4-6a53-e1b4n5o62758 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:设备通知返回参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.EquipmentNotify +{ + /// + /// 设备通知返回参数 + /// + public class EquipmentNotifyResultDto : ResultDto + { + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/GbCancelTask/GbCancelTaskDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/GbCancelTask/GbCancelTaskDto.cs new file mode 100644 index 0000000..496ccda --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/GbCancelTask/GbCancelTaskDto.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.GbCancelTask +* 唯一标识:d4e5f6a7-8004-49c3-b902-d0a3f4g51611 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:GB标准-任务取消请求参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.GbCancelTask +{ + /// + /// GB标准-任务取消请求参数 + /// + public class GbCancelTaskDto + { + /// + /// 任务号,全局唯一 + /// + public string RobotTaskCode { get; set; } + + /// + /// 任务取消类型:CANCEL(软取消)/DROP(硬取消) + /// + public string CancelType { get; set; } + + /// + /// 回库的载具编号 + /// + public string CarrierCode { get; set; } + + /// + /// 机器人编号 + /// + public string RobotCode { get; set; } + + /// + /// 取消原因 + /// + public string Reason { get; set; } + + /// + /// 软取消的回库任务类型 + /// + public string ReturnTaskType { get; set; } + + /// + /// 目标区域 + /// + public TargetRoute TargetRoute { get; set; } + + /// + /// 自定义扩展字段 + /// + public object Extra { get; set; } + } + + /// + /// 目标路径 + /// + public class TargetRoute + { + public string Type { get; set; } + public string Code { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/GbCancelTask/GbCancelTaskResultDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/GbCancelTask/GbCancelTaskResultDto.cs new file mode 100644 index 0000000..6986f82 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/GbCancelTask/GbCancelTaskResultDto.cs @@ -0,0 +1,40 @@ +using Sln.Wcs.Common.Domain.Dto; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.GbCancelTask; +using Sln.Wcs.HikRoBotAdapter.Enum; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.GbCancelTask +* 唯一标识:e5f6a7b8-9005-49c3-b902-d0a3f4g51612 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:GB标准-任务取消返回参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.GbCancelTask +{ + /// + /// GB标准-任务取消返回参数 + /// + public class GbCancelTaskResultDto : ResultDto + { + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/GbContinueTask/GbContinueTaskDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/GbContinueTask/GbContinueTaskDto.cs new file mode 100644 index 0000000..6b0e929 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/GbContinueTask/GbContinueTaskDto.cs @@ -0,0 +1,69 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.GbContinueTask +* 唯一标识:a1b2c3d4-5001-49c3-b902-d0a3f4g51608 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:GB标准-任务继续执行请求参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.GbContinueTask +{ + /// + /// GB标准-任务继续执行请求参数 + /// + public class GbContinueTaskDto + { + /// + /// 触发类型:SITE/CARRIER/ROBOT/TASK + /// + public string TriggerType { get; set; } + + /// + /// 与triggerType对应的触发编号 + /// + public string TriggerCode { get; set; } + + /// + /// 执行任务的下一个目标位置 + /// + public TargetRoute TargetRoute { get; set; } + + /// + /// 自定义扩展参数 + /// + public object Extra { get; set; } + } + + /// + /// 目标路径 + /// + public class TargetRoute + { + public string Type { get; set; } + public string Code { get; set; } + public string Operation { get; set; } + public string RobotType { get; set; } + public List RobotCode { get; set; } + public object Extra { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/GbContinueTask/GbContinueTaskResultDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/GbContinueTask/GbContinueTaskResultDto.cs new file mode 100644 index 0000000..1e1ed79 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/GbContinueTask/GbContinueTaskResultDto.cs @@ -0,0 +1,40 @@ +using Sln.Wcs.Common.Domain.Dto; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.GbContinueTask; +using Sln.Wcs.HikRoBotAdapter.Enum; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.GbContinueTask +* 唯一标识:b2c3d4e5-6002-49c3-b902-d0a3f4g51609 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:GB标准-任务继续执行返回参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.GbContinueTask +{ + /// + /// GB标准-任务继续执行返回参数 + /// + public class GbContinueTaskResultDto : ResultDto + { + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/GbTaskSubmit/GbTaskSubmitDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/GbTaskSubmit/GbTaskSubmitDto.cs new file mode 100644 index 0000000..ea75e0d --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/GbTaskSubmit/GbTaskSubmitDto.cs @@ -0,0 +1,104 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.GbTaskSubmit +* 唯一标识:a1b2c3d4-6001-49c3-b902-d0a3f4g51614 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:GB标准-任务下发请求参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.GbTaskSubmit +{ + /// + /// GB标准-任务下发请求参数 + /// + public class GbTaskSubmitDto + { + /// + /// 任务类型 + /// + public string TaskType { get; set; } + + /// + /// 目标路径列表 + /// + public List TargetRoute { get; set; } + + /// + /// 初始优先级 1~120 + /// + public int? InitPriority { get; set; } + + /// + /// 截止时间 + /// + public string Deadline { get; set; } + + /// + /// 期望开始时间 + /// + public string ExpectedStartTime { get; set; } + + /// + /// 机器人类型 GROUPS/ROBOTS + /// + public string RobotType { get; set; } + + /// + /// 指定机器人编号列表 + /// + public List RobotCode { get; set; } + + /// + /// 是否可中断 0/1 + /// + public int? Interrupt { get; set; } + + /// + /// 任务编号 + /// + public string RobotTaskCode { get; set; } + + /// + /// 组编号 + /// + public string GroupCode { get; set; } + + /// + /// 自定义扩展字段 + /// + public object Extra { get; set; } + } + + /// + /// 目标路径 + /// + public class TargetRoute + { + public string Type { get; set; } + public string Code { get; set; } + public string Operation { get; set; } + public string RobotType { get; set; } + public List RobotCode { get; set; } + public object Extra { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/GbTaskSubmit/GbTaskSubmitResultDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/GbTaskSubmit/GbTaskSubmitResultDto.cs new file mode 100644 index 0000000..2e0b566 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/GbTaskSubmit/GbTaskSubmitResultDto.cs @@ -0,0 +1,40 @@ +using Sln.Wcs.Common.Domain.Dto; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.GbTaskSubmit; +using Sln.Wcs.HikRoBotAdapter.Enum; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.GbTaskSubmit +* 唯一标识:b2c3d4e5-7002-49c3-b902-d0a3f4g51615 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:GB标准-任务下发返回参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.GbTaskSubmit +{ + /// + /// GB标准-任务下发返回参数 + /// + public class GbTaskSubmitResultDto : ResultDto + { + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/GenAgvSchedulingTask/GenAgvSchedulingTaskDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/GenAgvSchedulingTask/GenAgvSchedulingTaskDto.cs new file mode 100644 index 0000000..e9faa82 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/GenAgvSchedulingTask/GenAgvSchedulingTaskDto.cs @@ -0,0 +1,107 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.GenAgvSchedulingTask +* 唯一标识:3cad8de3-17fd-4714-b809-b89168713a6d +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-02-25 15:04:31 +* 版本:V2.0.0 +* 描述:GB标准-生成任务单请求参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V2.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.GenAgvSchedulingTask +{ + /// + /// GB标准-生成任务单请求参数 + /// + public class GenAgvSchedulingTaskDto + { + /// + /// 任务类型 + /// + public string TaskType { get; set; } + + /// + /// 目标路径列表 + /// + public List TargetRoute { get; set; } + + /// + /// 初始优先级 + /// + public int? InitPriority { get; set; } + + /// + /// 截止时间 + /// + public string Deadline { get; set; } + + /// + /// 期望开始时间 + /// + public string ExpectedStartTime { get; set; } + + /// + /// 机器人类型 + /// + public string RobotType { get; set; } + + /// + /// 指定机器人编号列表 + /// + public List RobotCode { get; set; } + + /// + /// 是否可中断 + /// + public int? Interrupt { get; set; } + + /// + /// 机器人任务编号 + /// + public string RobotTaskCode { get; set; } + + /// + /// 组编号 + /// + public string GroupCode { get; set; } + + /// + /// 自定义数据 + /// + public string Extra { get; set; } + } + + /// + /// 目标路径 + /// + public class TargetRoute + { + /// + /// 类型 + /// + public string Type { get; set; } + + /// + /// 编号 + /// + public string Code { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/GenAgvSchedulingTask/GenAgvSchedulingTaskResultDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/GenAgvSchedulingTask/GenAgvSchedulingTaskResultDto.cs new file mode 100644 index 0000000..25e7c31 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/GenAgvSchedulingTask/GenAgvSchedulingTaskResultDto.cs @@ -0,0 +1,40 @@ +using Sln.Wcs.Common.Domain.Dto; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.GenAgvSchedulingTask; +using Sln.Wcs.HikRoBotAdapter.Enum; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.GenAgvSchedulingTask +* 唯一标识:cc400640-5628-41bf-90d5-f0926202bc34 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-02-25 15:05:12 +* 版本:V2.0.0 +* 描述:GB标准-生成任务单返回参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V2.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.GenAgvSchedulingTask +{ + /// + /// GB标准-生成任务单返回参数 + /// + public class GenAgvSchedulingTaskResultDto : ResultDto + { + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/MatLabelBind/MatLabelBindDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/MatLabelBind/MatLabelBindDto.cs new file mode 100644 index 0000000..35d73bf --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/MatLabelBind/MatLabelBindDto.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.MatLabelBind +* 唯一标识:d5c6f7h8-4046-49n7-9a46-e4b7n8o95051 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:物料标签绑定请求参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.MatLabelBind +{ + /// + /// 物料标签绑定请求参数 + /// + public class MatLabelBindDto + { + /// + /// 载具编号 + /// + public string CarrierCode { get; set; } + + /// + /// 物料标签 + /// + public string MatLabel { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/MatLabelBind/MatLabelBindResultDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/MatLabelBind/MatLabelBindResultDto.cs new file mode 100644 index 0000000..5f4e956 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/MatLabelBind/MatLabelBindResultDto.cs @@ -0,0 +1,40 @@ +using Sln.Wcs.Common.Domain.Dto; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.MatLabelBind; +using Sln.Wcs.HikRoBotAdapter.Enum; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.MatLabelBind +* 唯一标识:d6c7f8h9-5047-49n8-0a47-e5b8n9o06152 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:物料标签绑定返回参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.MatLabelBind +{ + /// + /// 物料标签绑定返回参数 + /// + public class MatLabelBindResultDto : ResultDto + { + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/MatLabelUnbind/MatLabelUnbindDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/MatLabelUnbind/MatLabelUnbindDto.cs new file mode 100644 index 0000000..44d927e --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/MatLabelUnbind/MatLabelUnbindDto.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.MatLabelUnbind +* 唯一标识:d8c9f0h1-7049-49o0-2a49-e7b0n1o28354 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:物料标签解绑请求参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.MatLabelUnbind +{ + /// + /// 物料标签解绑请求参数 + /// + public class MatLabelUnbindDto + { + /// + /// 载具编号 + /// + public string CarrierCode { get; set; } + + /// + /// 物料标签 + /// + public string MatLabel { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/MatLabelUnbind/MatLabelUnbindResultDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/MatLabelUnbind/MatLabelUnbindResultDto.cs new file mode 100644 index 0000000..386b8bd --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/MatLabelUnbind/MatLabelUnbindResultDto.cs @@ -0,0 +1,40 @@ +using Sln.Wcs.Common.Domain.Dto; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.MatLabelUnbind; +using Sln.Wcs.HikRoBotAdapter.Enum; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.MatLabelUnbind +* 唯一标识:d9c0f1h2-8050-49o1-3a50-e8b1n2o39455 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:物料标签解绑返回参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.MatLabelUnbind +{ + /// + /// 物料标签解绑返回参数 + /// + public class MatLabelUnbindResultDto : ResultDto + { + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/PreTask/PreTaskDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/PreTask/PreTaskDto.cs new file mode 100644 index 0000000..f0eb83f --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/PreTask/PreTaskDto.cs @@ -0,0 +1,76 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.PreTask +* 唯一标识:d3c4f5h6-1034-49m5-7a34-e2b5n6o73839 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:预任务请求参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.PreTask +{ + /// + /// 预任务请求参数 + /// + public class PreTaskDto + { + /// + /// 站点编号 + /// + public string SiteCode { get; set; } + + /// + /// 下次任务时间 + /// + public string NextTaskTime { get; set; } + + /// + /// 机器人类型 + /// + public string RobotType { get; set; } + + /// + /// 优先级 + /// + public int? Priority { get; set; } + + /// + /// 任务数量 + /// + public int? TaskCount { get; set; } + + /// + /// 容量数量 + /// + public int? CapacityCount { get; set; } + + /// + /// AMR方向 + /// + public string AmrDir { get; set; } + + /// + /// 自定义数据 + /// + public string Extra { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/PreTask/PreTaskResultDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/PreTask/PreTaskResultDto.cs new file mode 100644 index 0000000..bdf2156 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/PreTask/PreTaskResultDto.cs @@ -0,0 +1,40 @@ +using Sln.Wcs.Common.Domain.Dto; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.PreTask; +using Sln.Wcs.HikRoBotAdapter.Enum; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.PreTask +* 唯一标识:d4c5f6h7-2035-49m6-8a35-e3b6n7o84940 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:预任务返回参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.PreTask +{ + /// + /// 预任务返回参数 + /// + public class PreTaskResultDto : ResultDto + { + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/QueryCarrier/QueryCarrierDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/QueryCarrier/QueryCarrierDto.cs new file mode 100644 index 0000000..a5257e6 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/QueryCarrier/QueryCarrierDto.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.QueryCarrier +* 唯一标识:d2c3f4h5-1043-49n4-6a43-e1b4n5o62748 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:查询载具状态请求参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.QueryCarrier +{ + /// + /// 查询载具状态请求参数 + /// + public class QueryCarrierDto + { + /// + /// 载具编号 + /// + public string CarrierCode { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/QueryCarrier/QueryCarrierResultDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/QueryCarrier/QueryCarrierResultDto.cs new file mode 100644 index 0000000..ba58eff --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/QueryCarrier/QueryCarrierResultDto.cs @@ -0,0 +1,40 @@ +using Sln.Wcs.Common.Domain.Dto; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.QueryCarrier; +using Sln.Wcs.HikRoBotAdapter.Enum; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.QueryCarrier +* 唯一标识:d3c4f5h6-2044-49n5-7a44-e2b5n6o73849 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:查询载具状态返回参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.QueryCarrier +{ + /// + /// 查询载具状态返回参数 + /// + public class QueryCarrierResultDto : ResultDto + { + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/QueryRobot/QueryRobotDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/QueryRobot/QueryRobotDto.cs new file mode 100644 index 0000000..1f70a43 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/QueryRobot/QueryRobotDto.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.QueryRobot +* 唯一标识:d9c0f1h2-7040-49n1-3a40-e8b1n2o39445 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:查询机器人状态请求参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.QueryRobot +{ + /// + /// 查询机器人状态请求参数 + /// + public class QueryRobotDto + { + /// + /// 机器人编号 + /// + public string SingleRobotCode { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/QueryRobot/QueryRobotResultDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/QueryRobot/QueryRobotResultDto.cs new file mode 100644 index 0000000..ebe25eb --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/QueryRobot/QueryRobotResultDto.cs @@ -0,0 +1,40 @@ +using Sln.Wcs.Common.Domain.Dto; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.QueryRobot; +using Sln.Wcs.HikRoBotAdapter.Enum; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.QueryRobot +* 唯一标识:d0c1f2h3-8041-49n2-4a41-e9b2n3o40546 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:查询机器人状态返回参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.QueryRobot +{ + /// + /// 查询机器人状态返回参数 + /// + public class QueryRobotResultDto : ResultDto + { + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/QueryTask/QueryTaskDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/QueryTask/QueryTaskDto.cs new file mode 100644 index 0000000..385ef25 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/QueryTask/QueryTaskDto.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.QueryTask +* 唯一标识:d6c7f8h9-4037-49m8-0a37-e5b8n9o06142 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:查询任务状态请求参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.QueryTask +{ + /// + /// 查询任务状态请求参数 + /// + public class QueryTaskDto + { + /// + /// 机器人任务编号 + /// + public string RobotTaskCode { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/QueryTask/QueryTaskResultDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/QueryTask/QueryTaskResultDto.cs new file mode 100644 index 0000000..985dc87 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/QueryTask/QueryTaskResultDto.cs @@ -0,0 +1,40 @@ +using Sln.Wcs.Common.Domain.Dto; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.QueryTask; +using Sln.Wcs.HikRoBotAdapter.Enum; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.QueryTask +* 唯一标识:d7c8f9h0-5038-49m9-1a38-e6b9n0o17243 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:查询任务状态返回参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.QueryTask +{ + /// + /// 查询任务状态返回参数 + /// + public class QueryTaskResultDto : ResultDto + { + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/SiteBind/SiteBindDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/SiteBind/SiteBindDto.cs new file mode 100644 index 0000000..4a6d7b6 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/SiteBind/SiteBindDto.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.SiteBind +* 唯一标识:d4c5f6h7-1025-49l6-8a25-e3b6n7o84930 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:站点绑定请求参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.SiteBind +{ + /// + /// 站点绑定请求参数 + /// + public class SiteBindDto + { + /// + /// 槽位类别 + /// + public string SlotCategory { get; set; } + + /// + /// 槽位编号 + /// + public string SlotCode { get; set; } + + /// + /// 载具类别 + /// + public string CarrierCategory { get; set; } + + /// + /// 载具类型 + /// + public string CarrierType { get; set; } + + /// + /// 载具编号 + /// + public string CarrierCode { get; set; } + + /// + /// 载具方向 + /// + public int? CarrierDir { get; set; } + + /// + /// 调用方式 + /// + public string Invoke { get; set; } + + /// + /// 堆叠标签 + /// + public string StackLabel { get; set; } + + /// + /// 列数 + /// + public int? ColCount { get; set; } + + /// + /// 自定义数据 + /// + public string Extra { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/SiteBind/SiteBindResultDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/SiteBind/SiteBindResultDto.cs new file mode 100644 index 0000000..63af81b --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/SiteBind/SiteBindResultDto.cs @@ -0,0 +1,40 @@ +using Sln.Wcs.Common.Domain.Dto; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.SiteBind; +using Sln.Wcs.HikRoBotAdapter.Enum; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.SiteBind +* 唯一标识:d5c6f7h8-2026-49l7-9a26-e4b7n8o95031 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:站点绑定返回参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.SiteBind +{ + /// + /// 站点绑定返回参数 + /// + public class SiteBindResultDto : ResultDto + { + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/SiteLock/SiteLockDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/SiteLock/SiteLockDto.cs new file mode 100644 index 0000000..ddc2f2e --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/SiteLock/SiteLockDto.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.SiteLock +* 唯一标识:d0c1f2h3-7031-49m2-4a31-e9b2n3o40536 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:站点锁定请求参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.SiteLock +{ + /// + /// 站点锁定请求参数 + /// + public class SiteLockDto + { + /// + /// 站点编号 + /// + public string SiteCode { get; set; } + + /// + /// 调用方式 + /// + public string Invoke { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/SiteLock/SiteLockResultDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/SiteLock/SiteLockResultDto.cs new file mode 100644 index 0000000..67e25f3 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/SiteLock/SiteLockResultDto.cs @@ -0,0 +1,40 @@ +using Sln.Wcs.Common.Domain.Dto; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.SiteLock; +using Sln.Wcs.HikRoBotAdapter.Enum; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.SiteLock +* 唯一标识:d1c2f3h4-8032-49m3-5a32-e0b3n4o51637 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:站点锁定返回参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.SiteLock +{ + /// + /// 站点锁定返回参数 + /// + public class SiteLockResultDto : ResultDto + { + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/TaskGroup/TaskGroupDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/TaskGroup/TaskGroupDto.cs new file mode 100644 index 0000000..2a306b8 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/TaskGroup/TaskGroupDto.cs @@ -0,0 +1,82 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.TaskGroup +* 唯一标识:d0b1f2a3-4001-49b2-a801-c9d2e3f40506 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:任务组请求参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.TaskGroup +{ + /// + /// 任务组请求参数 + /// + public class TaskGroupDto + { + /// + /// 组编号 + /// + public string GroupCode { get; set; } + + /// + /// 策略类型 + /// + public string Strategy { get; set; } + + /// + /// 策略值 + /// + public string StrategyValue { get; set; } + + /// + /// 组内任务序号 + /// + public string GroupSeq { get; set; } + + /// + /// 目标路径 + /// + public TargetRoute TargetRoute { get; set; } + + /// + /// 自定义数据 + /// + public string Data { get; set; } + } + + /// + /// 目标路径 + /// + public class TargetRoute + { + /// + /// 类型 + /// + public string Type { get; set; } + + /// + /// 编号 + /// + public string Code { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/TaskGroup/TaskGroupResultDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/TaskGroup/TaskGroupResultDto.cs new file mode 100644 index 0000000..2dd007d --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/TaskGroup/TaskGroupResultDto.cs @@ -0,0 +1,40 @@ +using Sln.Wcs.Common.Domain.Dto; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.TaskGroup; +using Sln.Wcs.HikRoBotAdapter.Enum; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.TaskGroup +* 唯一标识:d1c2f3b4-5002-49c3-b902-d0a3f4g51607 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:任务组返回参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.TaskGroup +{ + /// + /// 任务组返回参数 + /// + public class TaskGroupResultDto : ResultDto + { + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/TaskPriority/TaskPriorityDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/TaskPriority/TaskPriorityDto.cs new file mode 100644 index 0000000..4984679 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/TaskPriority/TaskPriorityDto.cs @@ -0,0 +1,56 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.TaskPriority +* 唯一标识:d3c4f5d6-7004-49e5-d904-d2b5h6i73809 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:任务优先级请求参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.TaskPriority +{ + /// + /// 任务优先级请求参数 + /// + public class TaskPriorityDto + { + /// + /// 机器人任务编号 + /// + public string RobotTaskCode { get; set; } + + /// + /// 初始优先级 + /// + public int? InitPriority { get; set; } + + /// + /// 截止时间 + /// + public string Deadline { get; set; } + + /// + /// 自定义数据 + /// + public string Extra { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/TaskPriority/TaskPriorityResultDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/TaskPriority/TaskPriorityResultDto.cs new file mode 100644 index 0000000..c92e966 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/TaskPriority/TaskPriorityResultDto.cs @@ -0,0 +1,40 @@ +using Sln.Wcs.Common.Domain.Dto; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.TaskPriority; +using Sln.Wcs.HikRoBotAdapter.Enum; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.TaskPriority +* 唯一标识:d4c5f6e7-8005-49f6-e905-d3b6i7j84910 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:任务优先级返回参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.TaskPriority +{ + /// + /// 任务优先级返回参数 + /// + public class TaskPriorityResultDto : ResultDto + { + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZoneBanish/ZoneBanishDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZoneBanish/ZoneBanishDto.cs new file mode 100644 index 0000000..f784201 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZoneBanish/ZoneBanishDto.cs @@ -0,0 +1,81 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.ZoneBanish +* 唯一标识:d2c3f4h5-7013-49k4-6a13-e1b4n5o62718 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:区域驱逐请求参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.ZoneBanish +{ + /// + /// 区域驱逐请求参数 + /// + public class ZoneBanishDto + { + /// + /// 区域编号 + /// + public string ZoneCode { get; set; } + + /// + /// 区域编号列表 + /// + public List ZoneCodes { get; set; } + + /// + /// 目标区域编号 + /// + public string TargetZoneCode { get; set; } + + /// + /// 是否暂停 + /// + public bool Pause { get; set; } + + /// + /// 是否需要报告 + /// + public bool Report { get; set; } + + /// + /// 控制模式 + /// + public string ControlMode { get; set; } + + /// + /// 过期时间 + /// + public string ExpireTime { get; set; } + + /// + /// 调用方式 + /// + public string Invoke { get; set; } + + /// + /// 自定义数据 + /// + public string Extra { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZoneBanish/ZoneBanishResultDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZoneBanish/ZoneBanishResultDto.cs new file mode 100644 index 0000000..4182a4e --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZoneBanish/ZoneBanishResultDto.cs @@ -0,0 +1,40 @@ +using Sln.Wcs.Common.Domain.Dto; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.ZoneBanish; +using Sln.Wcs.HikRoBotAdapter.Enum; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.ZoneBanish +* 唯一标识:d3c4f5h6-8014-49k5-7a14-e2b5n6o73819 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:区域驱逐返回参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.ZoneBanish +{ + /// + /// 区域驱逐返回参数 + /// + public class ZoneBanishResultDto : ResultDto + { + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZoneBlockade/ZoneBlockadeDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZoneBlockade/ZoneBlockadeDto.cs new file mode 100644 index 0000000..4055ca1 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZoneBlockade/ZoneBlockadeDto.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.ZoneBlockade +* 唯一标识:d5c6f7h8-1016-49k7-9a16-e4b7n8o95021 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:区域封锁请求参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.ZoneBlockade +{ + /// + /// 区域封锁请求参数 + /// + public class ZoneBlockadeDto + { + /// + /// 区域编号 + /// + public string ZoneCode { get; set; } + + /// + /// 地图编号 + /// + public string MapCode { get; set; } + + /// + /// 调用方式 + /// + public string Invoke { get; set; } + + /// + /// 是否暂停 + /// + public bool Pause { get; set; } + + /// + /// 是否需要报告 + /// + public bool Report { get; set; } + + /// + /// 禁用的站点 + /// + public int? DisableSite { get; set; } + + /// + /// 启用的站点 + /// + public int? EnableSite { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZoneBlockade/ZoneBlockadeResultDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZoneBlockade/ZoneBlockadeResultDto.cs new file mode 100644 index 0000000..d379433 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZoneBlockade/ZoneBlockadeResultDto.cs @@ -0,0 +1,40 @@ +using Sln.Wcs.Common.Domain.Dto; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.ZoneBlockade; +using Sln.Wcs.HikRoBotAdapter.Enum; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.ZoneBlockade +* 唯一标识:d6c7f8h9-2017-49k8-0a17-e5b8n9o06122 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:区域封锁返回参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.ZoneBlockade +{ + /// + /// 区域封锁返回参数 + /// + public class ZoneBlockadeResultDto : ResultDto + { + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZoneHoming/ZoneHomingDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZoneHoming/ZoneHomingDto.cs new file mode 100644 index 0000000..57b1051 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZoneHoming/ZoneHomingDto.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.ZoneHoming +* 唯一标识:d9c0f1h2-4010-49k1-3a10-e8b1n2o39415 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:区域回巢请求参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.ZoneHoming +{ + /// + /// 区域回巢请求参数 + /// + public class ZoneHomingDto + { + /// + /// 地图编号 + /// + public string MapCode { get; set; } + + /// + /// 区域编号 + /// + public string ZoneCode { get; set; } + + /// + /// 区域编号列表 + /// + public List ZoneCodes { get; set; } + + /// + /// 是否自动关机 + /// + public bool AutoShutdown { get; set; } + + /// + /// 启动时间 + /// + public string BootTime { get; set; } + + /// + /// 过期时间 + /// + public string ExpireTime { get; set; } + + /// + /// 自定义数据 + /// + public string Extra { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZoneHoming/ZoneHomingResultDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZoneHoming/ZoneHomingResultDto.cs new file mode 100644 index 0000000..99a3802 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZoneHoming/ZoneHomingResultDto.cs @@ -0,0 +1,40 @@ +using Sln.Wcs.Common.Domain.Dto; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.ZoneHoming; +using Sln.Wcs.HikRoBotAdapter.Enum; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.ZoneHoming +* 唯一标识:d0c1f2h3-5011-49k2-4a11-e9b2n3o40516 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:区域回巢返回参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.ZoneHoming +{ + /// + /// 区域回巢返回参数 + /// + public class ZoneHomingResultDto : ResultDto + { + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZonePause/ZonePauseDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZonePause/ZonePauseDto.cs new file mode 100644 index 0000000..d0db279 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZonePause/ZonePauseDto.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.ZonePause +* 唯一标识:d6c7f8g9-1007-49h8-0a07-e5b8k9l06112 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:区域暂停请求参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.ZonePause +{ + /// + /// 区域暂停请求参数 + /// + public class ZonePauseDto + { + /// + /// 区域编号 + /// + public string ZoneCode { get; set; } + + /// + /// 地图编号 + /// + public string MapCode { get; set; } + + /// + /// 调用方式 + /// + public string Invoke { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZonePause/ZonePauseResultDto.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZonePause/ZonePauseResultDto.cs new file mode 100644 index 0000000..8a645d6 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Dto/ZonePause/ZonePauseResultDto.cs @@ -0,0 +1,40 @@ +using Sln.Wcs.Common.Domain.Dto; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.ZonePause; +using Sln.Wcs.HikRoBotAdapter.Enum; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Dto.ZonePause +* 唯一标识:d7c8f9h0-2008-49i9-1a08-e6b9l0m17213 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:区域暂停返回参数 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Dto.ZonePause +{ + /// + /// 区域暂停返回参数 + /// + public class ZonePauseResultDto : ResultDto + { + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Enum/HikRoBotStatusEnum.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Enum/HikRoBotStatusEnum.cs new file mode 100644 index 0000000..d1a3be5 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Enum/HikRoBotStatusEnum.cs @@ -0,0 +1,100 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotSdk.Enum +* 唯一标识:011d2435-3325-4055-b1ec-a3e1834e3af6 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-02-25 14:52:00 +* 版本:V1.0.0 +* 描述: +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Enum +{ + public enum HikRoBotStatusEnum + { + 成功 = 0, + 参数相关的错误 = 1, + 重复发送上层系统不需要重发 = 6, + 其他未知错误调用失败后可以重试 = 99, + 该任务不存在上层系统不需重发需要人工介入处理=100, + SDK调用异常=101, + /// + /// 上一组任务未下发 + /// + Err_TaskNotStart = 102, + /// + /// 任务已结束 + /// + Err_TaskFinished = 103, + /// + /// 任务找不到 + /// + Err_TaskNotFound = 104, + /// + /// 任务当前无法变更 + /// + Err_TaskModifyReject = 105, + /// + /// 任务类型不支持 + /// + Err_TaskTypeNotSupport = 106, + /// + /// 机器人资源组编号与任务不匹配 + /// + Err_RobotGroupsNotMatch = 107, + /// + /// 机器人编号与任务不匹配 + /// + Err_RobotCodeNotMatch = 108, + /// + /// 任务路径参数有误 + /// + Err_TargetRouteError = 109, + /// + /// 状态转换异常 + /// + Err_StatusNotMatch = 110, + /// + /// 预设开机时间点小于当前时间点 + /// + Err_TimeMachineRequired = 111, + /// + /// 数据格式验证失败/找不到区域 + /// + Err_DataValidationFailed = 112, + /// + /// 载具或站点已存在任务 + /// + Err_TaskFound = 113, + /// + /// 载具或站点已与其他对象建立绑定关系 + /// + Err_Bound = 114, + /// + /// 请求重复 + /// + Err_RequestDuplicate = 115, + /// + /// 请求版本不合法/任务不存在 + /// + Err_InvalidVersion = 116, + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Model/CancelTask/CancelTaskResultModel.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Model/CancelTask/CancelTaskResultModel.cs new file mode 100644 index 0000000..cb52d8f --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Model/CancelTask/CancelTaskResultModel.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Model.CancelTask +* 唯一标识:ac71b2ae-be38-49b0-88ae-982226661531 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-02-25 15:08:30 +* 版本:V1.0.0 +* 描述: +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Model.CancelTask +{ + /// + /// 取消任务返回实体 + /// + public class CancelTaskResultModel + { + /// + /// 返回码 + /// + public string code { get; set; } + + /// + /// 返回消息 + /// + public string message { get; set; } + + /// + /// 请求编号 + /// + public string reqCode { get; set; } + public string errorCode { get; set; } + public bool success { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Model/CarrierBind/CarrierBindResultModel.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Model/CarrierBind/CarrierBindResultModel.cs new file mode 100644 index 0000000..b570b58 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Model/CarrierBind/CarrierBindResultModel.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Model.CarrierBind +* 唯一标识:d0c1f2h3-6021-49l2-4a21-e9b2n3o40526 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:载具绑定返回实体 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Model.CarrierBind +{ + /// + /// 载具绑定返回实体 + /// + public class CarrierBindResultModel + { + /// + /// 自定义数据 + /// + public string Extra { get; set; } + public string errorCode { get; set; } + public bool success { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Model/CarrierLock/CarrierLockResultModel.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Model/CarrierLock/CarrierLockResultModel.cs new file mode 100644 index 0000000..aef0d5a --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Model/CarrierLock/CarrierLockResultModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Model.CarrierLock +* 唯一标识:d9c0f1h2-6030-49m1-3a30-e8b1n2o39435 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:载具锁定返回实体 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Model.CarrierLock +{ + /// + /// 载具锁定返回实体 + /// + public class CarrierLockResultModel + { + public string errorCode { get; set; } + public bool success { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Model/CarrierUnbind/CarrierUnbindResultModel.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Model/CarrierUnbind/CarrierUnbindResultModel.cs new file mode 100644 index 0000000..305b6f2 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Model/CarrierUnbind/CarrierUnbindResultModel.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Model.CarrierUnbind +* 唯一标识:d3c4f5h6-9024-49l5-7a24-e2b5n6o73829 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:载具解绑返回实体 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Model.CarrierUnbind +{ + /// + /// 载具解绑返回实体 + /// + public class CarrierUnbindResultModel + { + /// + /// 自定义数据 + /// + public string Extra { get; set; } + public string errorCode { get; set; } + public bool success { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Model/ContinueTask/ContinueTaskResultModel.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Model/ContinueTask/ContinueTaskResultModel.cs new file mode 100644 index 0000000..5e840ce --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Model/ContinueTask/ContinueTaskResultModel.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Model.ContinueTask +* 唯一标识:4cf335d2-ab55-4c40-9a23-f2bf5ce7f597 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-02-25 15:09:13 +* 版本:V1.0.0 +* 描述: +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Model.ContinueTask +{ + /// + /// 任务继续返回实体 + /// + public class ContinueTaskResultModel + { + /// + /// 返回码 + /// + public string code { get; set; } + + /// + /// 返回消息 + /// + public string message { get; set; } + + /// + /// 请求编号 + /// + public string reqCode { get; set; } + public string errorCode { get; set; } + public bool success { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Model/EquipmentNotify/EquipmentNotifyResultModel.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Model/EquipmentNotify/EquipmentNotifyResultModel.cs new file mode 100644 index 0000000..298c012 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Model/EquipmentNotify/EquipmentNotifyResultModel.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Model.EquipmentNotify +* 唯一标识:d3c4f5h6-3054-49o5-7a54-e2b5n6o73859 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:设备通知返回实体 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Model.EquipmentNotify +{ + /// + /// 设备通知返回实体 + /// + public class EquipmentNotifyResultModel + { + /// + /// 机器人任务编号 + /// + public string RobotTaskCode { get; set; } + + /// + /// 下一个序号 + /// + public int? NextSeq { get; set; } + + /// + /// 自定义数据 + /// + public string Extra { get; set; } + public string errorCode { get; set; } + public bool success { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Model/GbCancelTask/GbCancelTaskResultModel.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Model/GbCancelTask/GbCancelTaskResultModel.cs new file mode 100644 index 0000000..3e0931a --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Model/GbCancelTask/GbCancelTaskResultModel.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Model.GbCancelTask +* 唯一标识:f6a7b8c9-1006-49c3-b902-d0a3f4g51613 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:GB标准-任务取消返回实体 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Model.GbCancelTask +{ + /// + /// GB标准-任务取消返回实体 + /// + public class GbCancelTaskResultModel + { + /// + /// 被取消的任务唯一标识 + /// + public string RobotTaskCode { get; set; } + + /// + /// 自定义扩展字段 + /// + public object Extra { get; set; } + public string errorCode { get; set; } + public bool success { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Model/GbContinueTask/GbContinueTaskResultModel.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Model/GbContinueTask/GbContinueTaskResultModel.cs new file mode 100644 index 0000000..77c8035 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Model/GbContinueTask/GbContinueTaskResultModel.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Model.GbContinueTask +* 唯一标识:c3d4e5f6-7003-49c3-b902-d0a3f4g51610 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:GB标准-任务继续执行返回实体 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Model.GbContinueTask +{ + /// + /// GB标准-任务继续执行返回实体 + /// + public class GbContinueTaskResultModel + { + /// + /// 任务号 + /// + public string RobotTaskCode { get; set; } + + /// + /// 下一步骤序号 + /// + public int? NextSeq { get; set; } + + /// + /// 自定义扩展字段 + /// + public object Extra { get; set; } + public string errorCode { get; set; } + public bool success { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Model/GbTaskSubmit/GbTaskSubmitResultModel.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Model/GbTaskSubmit/GbTaskSubmitResultModel.cs new file mode 100644 index 0000000..5b8ffdb --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Model/GbTaskSubmit/GbTaskSubmitResultModel.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Model.GbTaskSubmit +* 唯一标识:c3d4e5f6-8003-49c3-b902-d0a3f4g51616 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:GB标准-任务下发返回实体 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Model.GbTaskSubmit +{ + /// + /// GB标准-任务下发返回实体 + /// + public class GbTaskSubmitResultModel + { + public string code { get; set; } + + public string message { get; set; } + + public string errorCode{get;set;} + public GbTaskSubmitResultData data { get; set; } + + public bool success{get;set;} + } + + public class GbTaskSubmitResultData + { + public string robotTaskCode { get; set; } + public object extra { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Model/GenAgvSchedulingTask/GenAgvSchedulingTaskResultModel.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Model/GenAgvSchedulingTask/GenAgvSchedulingTaskResultModel.cs new file mode 100644 index 0000000..6837c75 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Model/GenAgvSchedulingTask/GenAgvSchedulingTaskResultModel.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Model.GenAgvSchedulingTask +* 唯一标识:b61df9f9-1fcc-46ac-b3e9-4d37a3fd0d29 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-02-25 15:06:37 +* 版本:V2.0.0 +* 描述:GB标准-生成任务单返回实体 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V2.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Model.GenAgvSchedulingTask +{ + /// + /// GB标准-生成任务单返回实体 + /// + public class GenAgvSchedulingTaskResultModel + { + /// + /// 机器人任务编号 + /// + public string RobotTaskCode { get; set; } + + /// + /// 自定义数据 + /// + public string Extra { get; set; } + public string errorCode { get; set; } + public bool success { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Model/MatLabelBind/MatLabelBindResultModel.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Model/MatLabelBind/MatLabelBindResultModel.cs new file mode 100644 index 0000000..d265b81 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Model/MatLabelBind/MatLabelBindResultModel.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Model.MatLabelBind +* 唯一标识:d7c8f9h0-6048-49n9-1a48-e6b9n0o17253 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:物料标签绑定返回实体 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Model.MatLabelBind +{ + /// + /// 物料标签绑定返回实体 + /// + public class MatLabelBindResultModel + { + /// + /// 自定义数据 + /// + public string Extra { get; set; } + public string errorCode { get; set; } + public bool success { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Model/MatLabelUnbind/MatLabelUnbindResultModel.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Model/MatLabelUnbind/MatLabelUnbindResultModel.cs new file mode 100644 index 0000000..3a62635 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Model/MatLabelUnbind/MatLabelUnbindResultModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Model.MatLabelUnbind +* 唯一标识:d0c1f2h3-9051-49o2-4a51-e9b2n3o40556 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:物料标签解绑返回实体 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Model.MatLabelUnbind +{ + /// + /// 物料标签解绑返回实体 + /// + public class MatLabelUnbindResultModel + { + public string errorCode { get; set; } + public bool success { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Model/PreTask/PreTaskResultModel.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Model/PreTask/PreTaskResultModel.cs new file mode 100644 index 0000000..9a31052 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Model/PreTask/PreTaskResultModel.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Model.PreTask +* 唯一标识:d5c6f7h8-3036-49m7-9a36-e4b7n8o95041 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:预任务返回实体 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Model.PreTask +{ + /// + /// 预任务返回实体 + /// + public class PreTaskResultModel + { + /// + /// 机器人任务编号 + /// + public string RobotTaskCode { get; set; } + + /// + /// 自定义数据 + /// + public string Extra { get; set; } + public string errorCode { get; set; } + public bool success { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Model/QueryCarrier/QueryCarrierResultModel.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Model/QueryCarrier/QueryCarrierResultModel.cs new file mode 100644 index 0000000..e36d1df --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Model/QueryCarrier/QueryCarrierResultModel.cs @@ -0,0 +1,93 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Model.QueryCarrier +* 唯一标识:d4c5f6h7-3045-49n6-8a45-e3b6n7o84950 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:查询载具状态返回实体 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Model.QueryCarrier +{ + /// + /// 查询载具状态返回实体 + /// + public class QueryCarrierResultModel + { + /// + /// 载具编号 + /// + public string CarrierCode { get; set; } + + /// + /// 机器人任务编号 + /// + public string RobotTaskCode { get; set; } + + /// + /// 站点编号 + /// + public string SiteCode { get; set; } + + /// + /// 坐标X + /// + public double X { get; set; } + + /// + /// 坐标Y + /// + public double Y { get; set; } + + /// + /// 载具方向 + /// + public int? CarrierDir { get; set; } + + /// + /// 载具状态 + /// + public string CarrierStatus { get; set; } + + /// + /// 料箱编号 + /// + public string BinCode { get; set; } + + /// + /// 料箱名称 + /// + public string BinName { get; set; } + + /// + /// 机器人编号 + /// + public string RobotCode { get; set; } + + /// + /// 自定义数据 + /// + public string Extra { get; set; } + public string errorCode { get; set; } + public bool success { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Model/QueryRobot/QueryRobotResultModel.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Model/QueryRobot/QueryRobotResultModel.cs new file mode 100644 index 0000000..0940325 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Model/QueryRobot/QueryRobotResultModel.cs @@ -0,0 +1,109 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Model.QueryRobot +* 唯一标识:d1c2f3h4-9042-49n3-5a42-e0b3n4o51647 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:查询机器人状态返回实体 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Model.QueryRobot +{ + /// + /// 查询机器人状态返回实体 + /// + public class QueryRobotResultModel + { + /// + /// 机器人编号 + /// + public string SingleRobotCode { get; set; } + + /// + /// 机器人方向 + /// + public int RobotDir { get; set; } + + /// + /// 机器人IP + /// + public string RobotIp { get; set; } + + /// + /// 电池电量 + /// + public int Battery { get; set; } + + /// + /// 坐标X + /// + public double X { get; set; } + + /// + /// 坐标Y + /// + public double Y { get; set; } + + /// + /// 速度 + /// + public int Speed { get; set; } + + /// + /// 机器人状态 + /// + public string RobotStatus { get; set; } + + /// + /// 载具编号 + /// + public string CarrierCode { get; set; } + + /// + /// 警告列表 + /// + public List Warnings { get; set; } + + /// + /// 自定义数据 + /// + public string Extra { get; set; } + public string errorCode { get; set; } + public bool success { get; set; } + } + + /// + /// 警告信息 + /// + public class Waring + { + /// + /// 警告码 + /// + public string Code { get; set; } + + /// + /// 警告描述 + /// + public string Desc { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Model/QueryTask/QueryTaskResultModel.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Model/QueryTask/QueryTaskResultModel.cs new file mode 100644 index 0000000..100d6f9 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Model/QueryTask/QueryTaskResultModel.cs @@ -0,0 +1,120 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Model.QueryTask +* 唯一标识:d8c9f0h1-6039-49n0-2a39-e7b0n1o28344 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:查询任务状态返回实体 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Model.QueryTask +{ + /// + /// 查询任务状态返回实体 + /// + public class QueryTaskResultModel + { + /// + /// 机器人任务编号 + /// + public string RobotTaskCode { get; set; } + + /// + /// 任务类型 + /// + public string TaskType { get; set; } + + /// + /// 任务状态 + /// + public string TaskStatus { get; set; } + + /// + /// 初始优先级 + /// + public int? InitPriority { get; set; } + + /// + /// 截止时间 + /// + public string Deadline { get; set; } + + /// + /// 目标路径列表 + /// + public List TargetRoute { get; set; } + + /// + /// 执行机器人编号 + /// + public string SingleRobotCode { get; set; } + + /// + /// 当前序号 + /// + public int? CurrentSeq { get; set; } + + /// + /// 警告信息 + /// + public Waring Waring { get; set; } + + /// + /// 自定义数据 + /// + public string Extra { get; set; } + public string errorCode { get; set; } + public bool success { get; set; } + } + + /// + /// 目标路径 + /// + public class TargetRoute + { + /// + /// 类型 + /// + public string Type { get; set; } + + /// + /// 编号 + /// + public string Code { get; set; } + } + + /// + /// 警告信息 + /// + public class Waring + { + /// + /// 警告码 + /// + public string Code { get; set; } + + /// + /// 警告描述 + /// + public string Desc { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Model/SiteBind/SiteBindResultModel.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Model/SiteBind/SiteBindResultModel.cs new file mode 100644 index 0000000..a62dd63 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Model/SiteBind/SiteBindResultModel.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Model.SiteBind +* 唯一标识:d6c7f8h9-3027-49l8-0a27-e5b8n9o06132 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:站点绑定返回实体 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Model.SiteBind +{ + /// + /// 站点绑定返回实体 + /// + public class SiteBindResultModel + { + /// + /// 自定义数据 + /// + public string Extra { get; set; } + public string errorCode { get; set; } + public bool success { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Model/SiteLock/SiteLockResultModel.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Model/SiteLock/SiteLockResultModel.cs new file mode 100644 index 0000000..e7f4ea6 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Model/SiteLock/SiteLockResultModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Model.SiteLock +* 唯一标识:d2c3f4h5-9033-49m4-6a33-e1b4n5o62738 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:站点锁定返回实体 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Model.SiteLock +{ + /// + /// 站点锁定返回实体 + /// + public class SiteLockResultModel + { + public string errorCode { get; set; } + public bool success { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Model/TaskGroup/TaskGroupResultModel.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Model/TaskGroup/TaskGroupResultModel.cs new file mode 100644 index 0000000..308bdaa --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Model/TaskGroup/TaskGroupResultModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Model.TaskGroup +* 唯一标识:d2c3f4c5-6003-49d4-c903-d1b4g5h62708 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:任务组返回实体 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Model.TaskGroup +{ + /// + /// 任务组返回实体 + /// + public class TaskGroupResultModel + { + public string errorCode { get; set; } + public bool success { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Model/TaskPriority/TaskPriorityResultModel.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Model/TaskPriority/TaskPriorityResultModel.cs new file mode 100644 index 0000000..420d0f9 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Model/TaskPriority/TaskPriorityResultModel.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Model.TaskPriority +* 唯一标识:d5c6f7g8-9006-49g7-f906-d4b7j8k95011 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:任务优先级返回实体 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Model.TaskPriority +{ + /// + /// 任务优先级返回实体 + /// + public class TaskPriorityResultModel + { + /// + /// 机器人任务编号 + /// + public string RobotTaskCode { get; set; } + + /// + /// 自定义数据 + /// + public string Extra { get; set; } + public string errorCode { get; set; } + public bool success { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Model/ZoneBanish/ZoneBanishResultModel.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Model/ZoneBanish/ZoneBanishResultModel.cs new file mode 100644 index 0000000..3ded810 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Model/ZoneBanish/ZoneBanishResultModel.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Model.ZoneBanish +* 唯一标识:d4c5f6h7-9015-49k6-8a15-e3b6n7o84920 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:区域驱逐返回实体 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Model.ZoneBanish +{ + /// + /// 区域驱逐返回实体 + /// + public class ZoneBanishResultModel + { + /// + /// 驱逐编号 + /// + public string BanishCode { get; set; } + + /// + /// 自定义数据 + /// + public string Extra { get; set; } + public string errorCode { get; set; } + public bool success { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Model/ZoneBlockade/ZoneBlockadeResultModel.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Model/ZoneBlockade/ZoneBlockadeResultModel.cs new file mode 100644 index 0000000..e92b60a --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Model/ZoneBlockade/ZoneBlockadeResultModel.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Model.ZoneBlockade +* 唯一标识:d7c8f9h0-3018-49k9-1a18-e6b9n0o17223 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:区域封锁返回实体 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Model.ZoneBlockade +{ + /// + /// 区域封锁返回实体 + /// + public class ZoneBlockadeResultModel + { + /// + /// 自定义数据 + /// + public string Extra { get; set; } + public string errorCode { get; set; } + public bool success { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Model/ZoneHoming/ZoneHomingResultModel.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Model/ZoneHoming/ZoneHomingResultModel.cs new file mode 100644 index 0000000..5abf2d0 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Model/ZoneHoming/ZoneHomingResultModel.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Model.ZoneHoming +* 唯一标识:d1c2f3h4-6012-49k3-5a12-e0b3n4o51617 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:区域回巢返回实体 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Model.ZoneHoming +{ + /// + /// 区域回巢返回实体 + /// + public class ZoneHomingResultModel + { + /// + /// 回巢编号 + /// + public string HomingCode { get; set; } + + /// + /// 机器人数量 + /// + public int RobotCount { get; set; } + + /// + /// 自定义数据 + /// + public string Extra { get; set; } + public string errorCode { get; set; } + public bool success { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Domain/Model/ZonePause/ZonePauseResultModel.cs b/Sln.Wcs.HikRoBotAdapter/Domain/Model/ZonePause/ZonePauseResultModel.cs new file mode 100644 index 0000000..69f63c6 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Domain/Model/ZonePause/ZonePauseResultModel.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Domain.Model.ZonePause +* 唯一标识:d8c9f0h1-3009-49j0-2a09-e7b0m1n28314 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-21 10:00:00 +* 版本:V1.0.0 +* 描述:区域暂停返回实体 +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Domain.Model.ZonePause +{ + /// + /// 区域暂停返回实体 + /// + public class ZonePauseResultModel + { + /// + /// 自定义数据 + /// + public string Extra { get; set; } + public string errorCode { get; set; } + public bool success { get; set; } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Service/IHikRoBotService.cs b/Sln.Wcs.HikRoBotAdapter/Service/IHikRoBotService.cs new file mode 100644 index 0000000..182d02b --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Service/IHikRoBotService.cs @@ -0,0 +1,205 @@ +using Sln.Wcs.HikRoBotAdapter.Domain.Dto.CancelTask; +using Sln.Wcs.HikRoBotAdapter.Domain.Dto.ContinueTask; +using Sln.Wcs.HikRoBotAdapter.Domain.Dto.GbCancelTask; +using Sln.Wcs.HikRoBotAdapter.Domain.Dto.GbContinueTask; +using Sln.Wcs.HikRoBotAdapter.Domain.Dto.GbTaskSubmit; +using Sln.Wcs.HikRoBotAdapter.Domain.Dto.GenAgvSchedulingTask; +using Sln.Wcs.HikRoBotAdapter.Domain.Dto.TaskGroup; +using Sln.Wcs.HikRoBotAdapter.Domain.Dto.TaskPriority; +using Sln.Wcs.HikRoBotAdapter.Domain.Dto.ZonePause; +using Sln.Wcs.HikRoBotAdapter.Domain.Dto.ZoneHoming; +using Sln.Wcs.HikRoBotAdapter.Domain.Dto.ZoneBanish; +using Sln.Wcs.HikRoBotAdapter.Domain.Dto.ZoneBlockade; +using Sln.Wcs.HikRoBotAdapter.Domain.Dto.CarrierBind; +using Sln.Wcs.HikRoBotAdapter.Domain.Dto.CarrierUnbind; +using Sln.Wcs.HikRoBotAdapter.Domain.Dto.SiteBind; +using Sln.Wcs.HikRoBotAdapter.Domain.Dto.CarrierLock; +using Sln.Wcs.HikRoBotAdapter.Domain.Dto.SiteLock; +using Sln.Wcs.HikRoBotAdapter.Domain.Dto.PreTask; +using Sln.Wcs.HikRoBotAdapter.Domain.Dto.QueryTask; +using Sln.Wcs.HikRoBotAdapter.Domain.Dto.QueryRobot; +using Sln.Wcs.HikRoBotAdapter.Domain.Dto.QueryCarrier; +using Sln.Wcs.HikRoBotAdapter.Domain.Dto.MatLabelBind; +using Sln.Wcs.HikRoBotAdapter.Domain.Dto.MatLabelUnbind; +using Sln.Wcs.HikRoBotAdapter.Domain.Dto.EquipmentNotify; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Service +* 唯一标识:ad6ee481-fa9c-4be2-a3b2-6741ddff58f7 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-02-25 15:15:10 +* 版本:V1.0.0 +* 描述: +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Service +{ + public interface IHikRoBotService + { + /// + /// GB标准-任务下发 + /// + GbTaskSubmitResultDto GbTaskSubmit(GbTaskSubmitDto gbTaskSubmit); + + /// + /// GB标准-任务继续执行 + /// + GbContinueTaskResultDto GbContinueTask(GbContinueTaskDto gbContinueTask); + + /// + /// GB标准-任务取消 + /// + GbCancelTaskResultDto GbCancelTask(GbCancelTaskDto gbCancelTask); + + /// + /// 任务组 + /// + /// + /// + TaskGroupResultDto TaskGroup(TaskGroupDto taskGroup); + + /// + /// 设置任务优先级 + /// + /// + /// + TaskPriorityResultDto SetTaskPriority(TaskPriorityDto taskPriority); + + /// + /// 区域暂停 + /// + /// + /// + ZonePauseResultDto ZonePause(ZonePauseDto zonePause); + + /// + /// 区域回巢 + /// + /// + /// + ZoneHomingResultDto ZoneHoming(ZoneHomingDto zoneHoming); + + /// + /// 区域驱逐 + /// + /// + /// + ZoneBanishResultDto ZoneBanish(ZoneBanishDto zoneBanish); + + /// + /// 区域封锁 + /// + /// + /// + ZoneBlockadeResultDto ZoneBlockade(ZoneBlockadeDto zoneBlockade); + + /// + /// 载具绑定 + /// + /// + /// + CarrierBindResultDto CarrierBind(CarrierBindDto carrierBind); + + /// + /// 载具解绑 + /// + /// + /// + CarrierUnbindResultDto CarrierUnbind(CarrierUnbindDto carrierUnbind); + + /// + /// 站点绑定 + /// + /// + /// + SiteBindResultDto SiteBind(SiteBindDto siteBind); + + /// + /// 载具锁定 + /// + /// + /// + CarrierLockResultDto CarrierLock(CarrierLockDto carrierLock); + + /// + /// 站点锁定 + /// + /// + /// + SiteLockResultDto SiteLock(SiteLockDto siteLock); + + /// + /// 预任务 + /// + /// + /// + PreTaskResultDto PreTask(PreTaskDto preTask); + + /// + /// 查询任务状态 + /// + /// + /// + QueryTaskResultDto QueryTaskStatus(QueryTaskDto queryTask); + + /// + /// 查询机器人状态 + /// + /// + /// + QueryRobotResultDto QueryRobotStatus(QueryRobotDto queryRobot); + + /// + /// 查询载具状态 + /// + /// + /// + QueryCarrierResultDto QueryCarrierStatus(QueryCarrierDto queryCarrier); + + /// + /// 物料标签绑定 + /// + /// + /// + MatLabelBindResultDto MatLabelBind(MatLabelBindDto matLabelBind); + + /// + /// 物料标签解绑 + /// + /// + /// + MatLabelUnbindResultDto MatLabelUnbind(MatLabelUnbindDto matLabelUnbind); + + /// + /// 设备通知 + /// + /// + /// + EquipmentNotifyResultDto EquipmentNotify(EquipmentNotifyDto equipmentNotify); + + /// + /// 设备通知(国标) + /// + /// + /// + EquipmentNotifyResultDto EquipmentNotifyGbt(EquipmentNotifyDto equipmentNotify); + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Service/Impl/HikRoBotService.cs b/Sln.Wcs.HikRoBotAdapter/Service/Impl/HikRoBotService.cs new file mode 100644 index 0000000..8827357 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Service/Impl/HikRoBotService.cs @@ -0,0 +1,829 @@ +using Sln.Wcs.HikRoBotAdapter.Domain.Dto.GbCancelTask; +using Sln.Wcs.HikRoBotAdapter.Domain.Dto.GbContinueTask; +using Sln.Wcs.HikRoBotAdapter.Domain.Dto.GbTaskSubmit; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.CarrierLock; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.MatLabelUnbind; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.SiteLock; +using Sln.Wcs.HikRoBotAdapter.Domain.Model.TaskGroup; +using Sln.Wcs.HikRoBotAdapter.Enum; +using Sln.Wcs.HikRoBotAdapter.Util; +using Sln.Wcs.HikRoBotSdk; +using TaskGroupResultDto = Sln.Wcs.HikRoBotAdapter.Domain.Dto.TaskGroup.TaskGroupResultDto; +using TaskPriorityResultDto = Sln.Wcs.HikRoBotAdapter.Domain.Dto.TaskPriority.TaskPriorityResultDto; +using ZonePauseResultDto = Sln.Wcs.HikRoBotAdapter.Domain.Dto.ZonePause.ZonePauseResultDto; +using ZoneHomingResultDto = Sln.Wcs.HikRoBotAdapter.Domain.Dto.ZoneHoming.ZoneHomingResultDto; +using ZoneBanishResultDto = Sln.Wcs.HikRoBotAdapter.Domain.Dto.ZoneBanish.ZoneBanishResultDto; +using ZoneBlockadeResultDto = Sln.Wcs.HikRoBotAdapter.Domain.Dto.ZoneBlockade.ZoneBlockadeResultDto; +using CarrierBindResultDto = Sln.Wcs.HikRoBotAdapter.Domain.Dto.CarrierBind.CarrierBindResultDto; +using CarrierUnbindResultDto = Sln.Wcs.HikRoBotAdapter.Domain.Dto.CarrierUnbind.CarrierUnbindResultDto; +using SiteBindResultDto = Sln.Wcs.HikRoBotAdapter.Domain.Dto.SiteBind.SiteBindResultDto; +using CarrierLockResultDto = Sln.Wcs.HikRoBotAdapter.Domain.Dto.CarrierLock.CarrierLockResultDto; +using SiteLockResultDto = Sln.Wcs.HikRoBotAdapter.Domain.Dto.SiteLock.SiteLockResultDto; +using PreTaskResultDto = Sln.Wcs.HikRoBotAdapter.Domain.Dto.PreTask.PreTaskResultDto; +using QueryTaskResultDto = Sln.Wcs.HikRoBotAdapter.Domain.Dto.QueryTask.QueryTaskResultDto; +using QueryRobotResultDto = Sln.Wcs.HikRoBotAdapter.Domain.Dto.QueryRobot.QueryRobotResultDto; +using QueryCarrierResultDto = Sln.Wcs.HikRoBotAdapter.Domain.Dto.QueryCarrier.QueryCarrierResultDto; +using MatLabelBindResultDto = Sln.Wcs.HikRoBotAdapter.Domain.Dto.MatLabelBind.MatLabelBindResultDto; +using MatLabelUnbindResultDto = Sln.Wcs.HikRoBotAdapter.Domain.Dto.MatLabelUnbind.MatLabelUnbindResultDto; +using EquipmentNotifyResultDto = Sln.Wcs.HikRoBotAdapter.Domain.Dto.EquipmentNotify.EquipmentNotifyResultDto; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Service.Impl +* 唯一标识:05713c1e-50f3-48cf-8ac8-0dfd1f768856 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-02-25 15:15:34 +* 版本:V1.0.0 +* 描述: +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Service.Impl +{ + public class HikRoBotService : IHikRoBotService + { + private readonly IHIKRoBotSdk hikRoBotSdk; + private readonly ApiResultCodeUtil codeUtil; + + public HikRoBotService(IHIKRoBotSdk hikRoBotSdk, ApiResultCodeUtil codeUtil) + { + this.hikRoBotSdk = hikRoBotSdk; + this.codeUtil = codeUtil; + } + + /// + /// 通用执行方法:封装空值检查、SDK 调用、结果码解析、异常处理 + /// + private TResult Execute( + Func sdkCall, + Func mapSuccess, + Func mapError) + { + try + { + dynamic resp = sdkCall(); + codeUtil.parse((string)resp.code, (string)resp.message, out var status); + return mapSuccess(resp, status); + } + catch (Exception ex) + { + return mapError(ex.Message); + } + } + + private static TResult Error(string msg) where TResult : new() + { + dynamic result = new TResult(); + result.code = HikRoBotStatusEnum.SDK调用异常; + result.msg = msg; + result.errorCode = msg; + result.success = false; + return result; + } + + public GbContinueTaskResultDto GbContinueTask(GbContinueTaskDto req) + { + return Execute( + () => + { + if (req == null) throw new ArgumentException("输入参数为空。"); + return hikRoBotSdk.GbContinueTask(new HikRoBotSdk.Dto.GbContinueTask.GbContinueTaskDto + { + triggerType = req.TriggerType, + triggerCode = req.TriggerCode, + targetRoute = req.TargetRoute != null ? new HikRoBotSdk.Dto.Common.TargetRoute + { + type = req.TargetRoute.Type, + code = req.TargetRoute.Code, + operation = req.TargetRoute.Operation, + } : null, + extra = req.Extra, + }); + }, + (resp, status) => new GbContinueTaskResultDto + { + code = status, + msg = resp.message, + data = new Domain.Model.GbContinueTask.GbContinueTaskResultModel + { + RobotTaskCode = resp.data?.robotTaskCode, + NextSeq = resp.data?.nextSeq, + Extra = resp.data?.extra, + errorCode = resp.errorCode, + success = resp.success, + }, + }, + Error + ); + } + + public GbCancelTaskResultDto GbCancelTask(GbCancelTaskDto req) + { + return Execute( + () => + { + if (req == null) throw new ArgumentException("输入参数为空。"); + return hikRoBotSdk.GbCancelTask(new HikRoBotSdk.Dto.GbCancelTask.GbCancelTaskDto + { + robotTaskCode = req.RobotTaskCode, + cancelType = req.CancelType, + carrierCode = req.CarrierCode, + robotCode = req.RobotCode, + reason = req.Reason, + returnTaskType = req.ReturnTaskType, + targetRoute = req.TargetRoute != null ? new HikRoBotSdk.Dto.Common.TargetRoute + { + type = req.TargetRoute.Type, + code = req.TargetRoute.Code, + } : null, + extra = req.Extra, + }); + }, + (resp, status) => new GbCancelTaskResultDto + { + code = status, + msg = resp.message, + data = new Domain.Model.GbCancelTask.GbCancelTaskResultModel + { + RobotTaskCode = resp.data?.robotTaskCode, + Extra = resp.data?.extra, + errorCode = resp.errorCode, + success = resp.success, + }, + }, + Error + ); + } + + public GbTaskSubmitResultDto GbTaskSubmit(GbTaskSubmitDto req) + { + return Execute( + () => + { + if (req == null) throw new ArgumentException("输入参数为空。"); + return hikRoBotSdk.GbTaskSubmit(new HikRoBotSdk.Dto.GbTaskSubmit.GbTaskSubmitDto + { + taskType = req.TaskType, + initPriority = req.InitPriority, + deadline = req.Deadline, + expectedStartTime = req.ExpectedStartTime, + robotType = req.RobotType, + robotCode = req.RobotCode, + interrupt = req.Interrupt, + robotTaskCode = req.RobotTaskCode, + groupCode = req.GroupCode, + extra = req.Extra != null ? new HikRoBotSdk.Dto.Common.ExtraInfo() : null, + targetRoute = req.TargetRoute != null ? req.TargetRoute.ConvertAll(r => new HikRoBotSdk.Dto.Common.TargetRoute + { + type = r.Type, + code = r.Code, + operation = r.Operation, + robotType = r.RobotType, + robotCode = r.RobotCode, + }) : null, + }); + }, + (resp, status) => new GbTaskSubmitResultDto + { + code = status, + msg = resp.message, + data = new Domain.Model.GbTaskSubmit.GbTaskSubmitResultModel + { + code = resp.code, + message = resp.message, + data = new Domain.Model.GbTaskSubmit.GbTaskSubmitResultData + { + robotTaskCode = resp.data?.robotTaskCode, + extra = resp.data?.extra?.ToString(), + }, + errorCode = resp.errorCode, + success = resp.success, + }, + }, + Error + ); + } + + public TaskGroupResultDto TaskGroup(Domain.Dto.TaskGroup.TaskGroupDto req) + { + return Execute( + () => + { + if (req == null) throw new ArgumentException("输入参数为空。"); + return hikRoBotSdk.TaskGroup(new HikRoBotSdk.Dto.TaskGroup.TaskGroupDto + { + groupCode = req.GroupCode, + strategy = req.Strategy, + strategyValue = req.StrategyValue, + groupSeq = !string.IsNullOrEmpty(req.GroupSeq) ? int.Parse(req.GroupSeq) : (int?)null, + targetRoute = req.TargetRoute != null ? new HikRoBotSdk.Dto.Common.TargetRoute + { + type = req.TargetRoute.Type, + code = req.TargetRoute.Code, + } : null, + }); + }, + (resp, status) => new TaskGroupResultDto { code = status, msg = resp.message,data = new TaskGroupResultModel() + { + success = resp.success, + errorCode = resp.errorCode, + }}, + Error + ); + } + + public TaskPriorityResultDto SetTaskPriority(Domain.Dto.TaskPriority.TaskPriorityDto req) + { + return Execute( + () => + { + if (req == null) throw new ArgumentException("输入参数为空。"); + return hikRoBotSdk.SetTaskPriority(new HikRoBotSdk.Dto.TaskPriority.TaskPriorityDto + { + robotTaskCode = req.RobotTaskCode, + initPriority = req.InitPriority ?? 0, + deadline = req.Deadline, + extra = req.Extra, + }); + }, + (resp, status) => new TaskPriorityResultDto + { + code = status, + msg = resp.message, + data = new Domain.Model.TaskPriority.TaskPriorityResultModel + { + RobotTaskCode = resp.data?.robotTaskCode, + Extra = resp.data?.extra?.ToString(), + errorCode = resp.errorCode, + success = resp.success, + }, + }, + Error + ); + } + + public ZonePauseResultDto ZonePause(Domain.Dto.ZonePause.ZonePauseDto req) + { + return Execute( + () => + { + if (req == null) throw new ArgumentException("输入参数为空。"); + return hikRoBotSdk.ZonePause(new HikRoBotSdk.Dto.ZonePause.ZonePauseDto + { + zoneCode = req.ZoneCode, + mapCode = req.MapCode, + invoke = req.Invoke, + }); + }, + (resp, status) => new ZonePauseResultDto + { + code = status, + msg = resp.message, + data = new Domain.Model.ZonePause.ZonePauseResultModel + { + Extra = resp.extra?.ToString(), + errorCode = resp.errorCode, + success = resp.success, + }, + }, + Error + ); + } + + public ZoneHomingResultDto ZoneHoming(Domain.Dto.ZoneHoming.ZoneHomingDto req) + { + return Execute( + () => + { + if (req == null) throw new ArgumentException("输入参数为空。"); + return hikRoBotSdk.ZoneHoming(new HikRoBotSdk.Dto.ZoneHoming.ZoneHomingDto + { + mapCode = req.MapCode, + zoneCode = req.ZoneCode, + zoneCodes = req.ZoneCodes, + autoShutdown = req.AutoShutdown.ToString().ToLower(), + bootTime = req.BootTime, + expireTime = req.ExpireTime, + extra = req.Extra, + }); + }, + (resp, status) => new ZoneHomingResultDto + { + code = status, + msg = resp.message, + data = new Domain.Model.ZoneHoming.ZoneHomingResultModel + { + HomingCode = resp.data?.homingCode, + RobotCount = resp.data?.robotCount ?? 0, + Extra = resp.data?.extra?.ToString(), + errorCode = resp.errorCode, + success = resp.success, + }, + }, + Error + ); + } + + public ZoneBanishResultDto ZoneBanish(Domain.Dto.ZoneBanish.ZoneBanishDto req) + { + return Execute( + () => + { + if (req == null) throw new ArgumentException("输入参数为空。"); + return hikRoBotSdk.ZoneBanish(new HikRoBotSdk.Dto.ZoneBanish.ZoneBanishDto + { + zoneCode = req.ZoneCode, + zoneCodes = req.ZoneCodes, + targetZoneCode = req.TargetZoneCode, + pause = req.Pause.ToString().ToLower(), + report = req.Report.ToString().ToLower(), + controlMode = req.ControlMode, + expireTime = req.ExpireTime, + invoke = req.Invoke, + extra = req.Extra, + }); + }, + (resp, status) => new ZoneBanishResultDto + { + code = status, + msg = resp.message, + data = new Domain.Model.ZoneBanish.ZoneBanishResultModel + { + BanishCode = resp.data?.banishCode, + Extra = resp.data?.extra?.ToString(), + errorCode = resp.errorCode, + success = resp.success, + }, + }, + Error + ); + } + + public ZoneBlockadeResultDto ZoneBlockade(Domain.Dto.ZoneBlockade.ZoneBlockadeDto req) + { + return Execute( + () => + { + if (req == null) throw new ArgumentException("输入参数为空。"); + return hikRoBotSdk.ZoneBlockade(new HikRoBotSdk.Dto.ZoneBlockade.ZoneBlockadeDto + { + zoneCode = req.ZoneCode, + mapCode = req.MapCode, + invoke = req.Invoke, + pause = req.Pause.ToString().ToLower(), + report = req.Report.ToString().ToLower(), + disableSite = req.DisableSite, + enableSite = req.EnableSite, + }); + }, + (resp, status) => new ZoneBlockadeResultDto + { + code = status, + msg = resp.message, + data = new Domain.Model.ZoneBlockade.ZoneBlockadeResultModel + { + Extra = resp.extra?.ToString(), + errorCode = resp.errorCode, + success = resp.success, + }, + }, + Error + ); + } + + public CarrierBindResultDto CarrierBind(Domain.Dto.CarrierBind.CarrierBindDto req) + { + return Execute( + () => + { + if (req == null) throw new ArgumentException("输入参数为空。"); + return hikRoBotSdk.CarrierBind(new HikRoBotSdk.Dto.CarrierBind.CarrierBindDto + { + carrierCode = req.CarrierCode, + siteCode = req.SiteCode, + carrierDir = req.CarrierDir, + extra = req.Extra, + }); + }, + (resp, status) => new CarrierBindResultDto + { + code = status, + msg = resp.message, + data = new Domain.Model.CarrierBind.CarrierBindResultModel + { + Extra = resp.extra?.ToString(), + errorCode = resp.errorCode, + success = resp.success, + }, + }, + Error + ); + } + + public CarrierUnbindResultDto CarrierUnbind(Domain.Dto.CarrierUnbind.CarrierUnbindDto req) + { + return Execute( + () => + { + if (req == null) throw new ArgumentException("输入参数为空。"); + return hikRoBotSdk.CarrierUnbind(new HikRoBotSdk.Dto.CarrierUnbind.CarrierUnbindDto + { + carrierCode = req.CarrierCode, + siteCode = req.SiteCode, + extra = req.Extra, + }); + }, + (resp, status) => new CarrierUnbindResultDto + { + code = status, + msg = resp.message, + data = new Domain.Model.CarrierUnbind.CarrierUnbindResultModel + { + Extra = resp.extra?.ToString(), + errorCode = resp.errorCode, + success = resp.success, + }, + }, + Error + ); + } + + public SiteBindResultDto SiteBind(Domain.Dto.SiteBind.SiteBindDto req) + { + return Execute( + () => + { + if (req == null) throw new ArgumentException("输入参数为空。"); + return hikRoBotSdk.SiteBind(new HikRoBotSdk.Dto.SiteBind.SiteBindDto + { + slotCategory = req.SlotCategory, + slotCode = req.SlotCode, + carrierCategory = req.CarrierCategory, + carrierType = req.CarrierType, + carrierCode = req.CarrierCode, + carrierDir = req.CarrierDir, + invoke = req.Invoke, + stackLabel = req.StackLabel, + colCount = req.ColCount, + extra = req.Extra, + }); + }, + (resp, status) => new SiteBindResultDto + { + code = status, + msg = resp.message, + data = new Domain.Model.SiteBind.SiteBindResultModel + { + Extra = resp.extra?.ToString(), + errorCode = resp.errorCode, + success = resp.success, + }, + }, + Error + ); + } + + public CarrierLockResultDto CarrierLock(Domain.Dto.CarrierLock.CarrierLockDto req) + { + return Execute( + () => + { + if (req == null) throw new ArgumentException("输入参数为空。"); + return hikRoBotSdk.CarrierLock(new HikRoBotSdk.Dto.CarrierLock.CarrierLockDto + { + carrierCode = req.CarrierCode, + invoke = req.Invoke, + }); + }, + (resp, status) => new CarrierLockResultDto { code = status, msg = resp.message, data = new CarrierLockResultModel() + { + success = resp.success, + errorCode = resp.errorCode, + }}, + Error + ); + } + + public SiteLockResultDto SiteLock(Domain.Dto.SiteLock.SiteLockDto req) + { + return Execute( + () => + { + if (req == null) throw new ArgumentException("输入参数为空。"); + return hikRoBotSdk.SiteLock(new HikRoBotSdk.Dto.SiteLock.SiteLockDto + { + siteCode = req.SiteCode, + invoke = req.Invoke, + }); + }, + (resp, status) => new SiteLockResultDto { code = status, msg = resp.message,data = new SiteLockResultModel() + { + success = resp.success, + errorCode = resp.errorCode, + }}, + Error + ); + } + + public PreTaskResultDto PreTask(Domain.Dto.PreTask.PreTaskDto req) + { + return Execute( + () => + { + if (req == null) throw new ArgumentException("输入参数为空。"); + return hikRoBotSdk.PreTask(new HikRoBotSdk.Dto.PreTask.PreTaskDto + { + siteCode = req.SiteCode, + nextTaskTime = req.NextTaskTime, + robotType = req.RobotType, + priority = req.Priority, + taskCount = req.TaskCount, + capacityCount = req.CapacityCount, + amrDir = req.AmrDir, + extra = req.Extra, + }); + }, + (resp, status) => new PreTaskResultDto + { + code = status, + msg = resp.message, + data = new Domain.Model.PreTask.PreTaskResultModel + { + RobotTaskCode = resp.data?.robotTaskCode, + Extra = resp.data?.extra?.ToString(), + errorCode = resp.errorCode, + success = resp.success, + }, + }, + Error + ); + } + + public QueryTaskResultDto QueryTaskStatus(Domain.Dto.QueryTask.QueryTaskDto req) + { + return Execute( + () => + { + if (req == null) throw new ArgumentException("输入参数为空。"); + return hikRoBotSdk.QueryTaskStatus(new HikRoBotSdk.Dto.QueryTask.QueryTaskDto + { + robotTaskCode = req.RobotTaskCode, + }); + }, + (resp, status) => + { + var data = resp.data; + var model = new Domain.Model.QueryTask.QueryTaskResultModel + { + RobotTaskCode = data?.robotTaskCode, + TaskType = data?.taskType, + TaskStatus = data?.taskStatus, + InitPriority = data?.initPriority, + Deadline = data?.deadline, + SingleRobotCode = data?.singleRobotCode, + CurrentSeq = data?.currentSeq, + Extra = data?.extra?.ToString(), + success = resp.success, + errorCode = resp.errorCode, + }; + + if (data?.targetRoute != null) + { + model.TargetRoute = ((IEnumerable)data.targetRoute).Select(r => new Domain.Model.QueryTask.TargetRoute + { + Type = r.type, + Code = r.code, + }).ToList(); + } + + if (data?.waring != null) + { + model.Waring = new Domain.Model.QueryTask.Waring + { + Code = data.waring.taskWarnCode, + Desc = data.waring.errorMsg, + }; + } + + return new QueryTaskResultDto { code = status, msg = resp.message, data = model }; + }, + Error + ); + } + + public QueryRobotResultDto QueryRobotStatus(Domain.Dto.QueryRobot.QueryRobotDto req) + { + return Execute( + () => + { + if (req == null) throw new ArgumentException("输入参数为空。"); + return hikRoBotSdk.QueryRobotStatus(new HikRoBotSdk.Dto.QueryRobot.QueryRobotDto + { + singleRobotCode = req.SingleRobotCode, + }); + }, + (resp, status) => + { + var data = resp.data; + var model = new Domain.Model.QueryRobot.QueryRobotResultModel + { + SingleRobotCode = data?.singleRobotCode, + RobotDir = data?.robotDir ?? 0, + RobotIp = data?.robotIp, + Battery = data?.battery ?? 0, + Speed = data?.speed ?? 0, + CarrierCode = data?.carrierCode, + Extra = data?.extra?.ToString(), + success = resp.success, + errorCode = resp.errorCode, + }; + + string xStr = data?.x; + if (double.TryParse(xStr, out double xVal)) model.X = xVal; + + string yStr = data?.y; + if (double.TryParse(yStr, out double yVal)) model.Y = yVal; + + if (data?.robotStatus != null) + model.RobotStatus = data.robotStatus.taskable; + + if (data?.warnings != null) + { + model.Warnings = ((IEnumerable)data.warnings).Select(w => new Domain.Model.QueryRobot.Waring + { + Code = w.taskWarnCode, + Desc = w.errorMsg, + }).ToList(); + } + + return new QueryRobotResultDto { code = status, msg = resp.message, data = model}; + }, + Error + ); + } + + public QueryCarrierResultDto QueryCarrierStatus(Domain.Dto.QueryCarrier.QueryCarrierDto req) + { + return Execute( + () => + { + if (req == null) throw new ArgumentException("输入参数为空。"); + return hikRoBotSdk.QueryCarrierStatus(new HikRoBotSdk.Dto.QueryCarrier.QueryCarrierDto + { + carrierCode = req.CarrierCode, + }); + }, + (resp, status) => + { + var data = resp.data; + var model = new Domain.Model.QueryCarrier.QueryCarrierResultModel + { + CarrierCode = data?.carrierCode, + RobotTaskCode = data?.robotTaskCode, + SiteCode = data?.siteCode, + CarrierDir = data?.carrierDir, + CarrierStatus = data?.carrierStatus, + BinCode = data?.binCode, + BinName = data?.binName, + RobotCode = data?.robotCode, + Extra = data?.extra?.ToString(), + success = resp.success, + errorCode = resp.errorCode, + }; + + string xStr = data?.x; + if (double.TryParse(xStr, out double xVal)) model.X = xVal; + + string yStr = data?.y; + if (double.TryParse(yStr, out double yVal)) model.Y = yVal; + + return new QueryCarrierResultDto { code = status, msg = resp.message, data = model }; + }, + Error + ); + } + + public MatLabelBindResultDto MatLabelBind(Domain.Dto.MatLabelBind.MatLabelBindDto req) + { + return Execute( + () => + { + if (req == null) throw new ArgumentException("输入参数为空。"); + return hikRoBotSdk.MatLabelBind(new HikRoBotSdk.Dto.MatLabelBind.MatLabelBindDto + { + carrierCode = req.CarrierCode, + matLabel = req.MatLabel, + }); + }, + (resp, status) => new MatLabelBindResultDto + { + code = status, + msg = resp.message, + data = new Domain.Model.MatLabelBind.MatLabelBindResultModel + { + Extra = resp.extra?.ToString(), + errorCode = resp.errorCode, + success = resp.success, + }, + }, + Error + ); + } + + public MatLabelUnbindResultDto MatLabelUnbind(Domain.Dto.MatLabelUnbind.MatLabelUnbindDto req) + { + return Execute( + () => + { + if (req == null) throw new ArgumentException("输入参数为空。"); + return hikRoBotSdk.MatLabelUnbind(new HikRoBotSdk.Dto.MatLabelUnbind.MatLabelUnbindDto + { + carrierCode = req.CarrierCode, + matLabel = req.MatLabel, + }); + }, + (resp, status) => new MatLabelUnbindResultDto { code = status, msg = resp.message,data = new MatLabelUnbindResultModel() + { + errorCode = resp.errorCode, + success = resp.success, + }}, + Error + ); + } + + public EquipmentNotifyResultDto EquipmentNotify(Domain.Dto.EquipmentNotify.EquipmentNotifyDto req) + { + return Execute( + () => + { + if (req == null) throw new ArgumentException("输入参数为空。"); + return hikRoBotSdk.EquipmentNotify(new HikRoBotSdk.Dto.EquipmentNotify.EquipmentNotifyDto + { + eqptCode = req.EqptCode, + taskCode = req.TaskCode, + actionStatus = req.ActionStatus, + siteCode = req.SiteCode, + extra = req.Extra, + }); + }, + (resp, status) => new EquipmentNotifyResultDto + { + code = status, + msg = resp.message, + data = new Domain.Model.EquipmentNotify.EquipmentNotifyResultModel + { + RobotTaskCode = resp.data?.robotTaskCode, + NextSeq = resp.data?.nextSeq, + Extra = resp.data?.extra?.ToString(), + errorCode = resp.errorCode, + success = resp.success, + }, + }, + Error + ); + } + + public EquipmentNotifyResultDto EquipmentNotifyGbt(Domain.Dto.EquipmentNotify.EquipmentNotifyDto req) + { + return Execute( + () => + { + if (req == null) throw new ArgumentException("输入参数为空。"); + return hikRoBotSdk.EquipmentNotifyGbt(new HikRoBotSdk.Dto.EquipmentNotify.EquipmentNotifyDto + { + eqptCode = req.EqptCode, + taskCode = req.TaskCode, + actionStatus = req.ActionStatus, + siteCode = req.SiteCode, + extra = req.Extra, + }); + }, + (resp, status) => new EquipmentNotifyResultDto + { + code = status, + msg = resp.message, + data = new Domain.Model.EquipmentNotify.EquipmentNotifyResultModel + { + RobotTaskCode = resp.data?.robotTaskCode, + NextSeq = resp.data?.nextSeq, + Extra = resp.data?.extra?.ToString(), + errorCode = resp.errorCode, + success = resp.success, + }, + }, + Error + ); + } + } +} diff --git a/Sln.Wcs.HikRoBotAdapter/Sln.Wcs.HikRoBotAdapter.csproj b/Sln.Wcs.HikRoBotAdapter/Sln.Wcs.HikRoBotAdapter.csproj new file mode 100644 index 0000000..86ac570 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Sln.Wcs.HikRoBotAdapter.csproj @@ -0,0 +1,14 @@ + + + + net8.0 + enable + enable + + + + + + + + diff --git a/Sln.Wcs.HikRoBotAdapter/Util/ApiResultCodeUtil.cs b/Sln.Wcs.HikRoBotAdapter/Util/ApiResultCodeUtil.cs new file mode 100644 index 0000000..25af587 --- /dev/null +++ b/Sln.Wcs.HikRoBotAdapter/Util/ApiResultCodeUtil.cs @@ -0,0 +1,77 @@ +using Sln.Wcs.HikRoBotAdapter.Enum; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +#region << 版 本 注 释 >> +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:T14-GEN3-7895 +* 命名空间:Sln.Wcs.HikRoBotAdapter.Util +* 唯一标识:7cea7d00-c417-480f-b2af-ff47d07e25d8 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-02-25 15:11:14 +* 版本:V1.0.0 +* 描述: +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ +#endregion << 版 本 注 释 >> +namespace Sln.Wcs.HikRoBotAdapter.Util +{ + public class ApiResultCodeUtil + { + + /// + /// + /// + /// + /// + /// + /// + public bool parse(string respCode, string respMsg, out HikRoBotStatusEnum hikRoBotStatus) + { + bool isRes = false; + + hikRoBotStatus = HikRoBotStatusEnum.成功; + + switch (respCode) + { + case "0": + if (respMsg.Contains("成功")) + { + hikRoBotStatus = HikRoBotStatusEnum.成功; + isRes = true; + } + break; + case "1": + hikRoBotStatus = HikRoBotStatusEnum.参数相关的错误; + break; + case "6": + hikRoBotStatus = HikRoBotStatusEnum.重复发送上层系统不需要重发; + break; + case "99": + hikRoBotStatus = HikRoBotStatusEnum.其他未知错误调用失败后可以重试; + break; + case "100": + hikRoBotStatus = HikRoBotStatusEnum.该任务不存在上层系统不需重发需要人工介入处理; + break; + default: + isRes = true; + break; + } + + return isRes; + } + } +} diff --git a/Sln.Wcs.HoistAdapter/Domain/Dto/GetHoistStatus/GetHoistStatusDto.cs b/Sln.Wcs.HoistAdapter/Domain/Dto/GetHoistStatus/GetHoistStatusDto.cs new file mode 100644 index 0000000..a029764 --- /dev/null +++ b/Sln.Wcs.HoistAdapter/Domain/Dto/GetHoistStatus/GetHoistStatusDto.cs @@ -0,0 +1,71 @@ +#region << 版 本 注 释 >> + +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:Mr.Wen's MacBook Pro +* 命名空间:Sln.Wcs.HoistAdapter.Domain.Dto.GetHoistStatus +* 唯一标识:8BF91B3B-BB38-4809-9F3A-0B634C3853DC +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-29 14:30:55 +* 版本:V1.0.0 +* 描述: +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ + +#endregion << 版 本 注 释 >> + +namespace Sln.Wcs.HoistAdapter.Domain.Dto.GetHoistStatus; + +public class GetHoistStatusDto +{ + /// + /// 提升机编号 + /// + public string hoistCode { get; set; } + + /// + /// 反馈任务执行指令:是否可以下发任务 + /// + public string canDispatchTask { get; set; } + + /// + /// 当前楼层 + /// + public string currentFloor { get; set; } + + /// + /// 接驳位状态(1~5 楼) + /// 索引 0 → 1楼,索引 1 → 2楼,... 索引 4 → 5楼 + /// + public List transferStationStatus { get; set; } + + /// + /// 读写器触发状态(1~5 楼) + /// 索引 0 → 1楼,索引 1 → 2楼,... 索引 4 → 5楼 + /// + public List readerTriggerStatus { get; set; } + + /// + /// 自动状态:true = 自动模式,false = 手动模式 + /// + public string isAutoMode { get; set; } + + /// + /// 屏蔽调度:true = 屏蔽中,false = 未屏蔽 + /// + public string isDispatchBlocked { get; set; } + + /// + /// 状态指示(详见 ) + /// + public string stateIndicator { get; set; } +} \ No newline at end of file diff --git a/Sln.Wcs.HoistAdapter/Domain/Dto/GetHoistStatus/GetHoistStatusResultDto.cs b/Sln.Wcs.HoistAdapter/Domain/Dto/GetHoistStatus/GetHoistStatusResultDto.cs new file mode 100644 index 0000000..75422f6 --- /dev/null +++ b/Sln.Wcs.HoistAdapter/Domain/Dto/GetHoistStatus/GetHoistStatusResultDto.cs @@ -0,0 +1,36 @@ +#region << 版 本 注 释 >> + +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:Mr.Wen's MacBook Pro +* 命名空间:Sln.Wcs.HoistAdapter.Domain.Dto.GetHoistStatus +* 唯一标识:CF90B482-6D53-45A9-A645-52786ED616D4 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-29 14:31:03 +* 版本:V1.0.0 +* 描述: +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ + +#endregion << 版 本 注 释 >> + +using Sln.Wcs.Common.Domain.Dto; +using Sln.Wcs.HoistAdapter.Domain.Enum; +using Sln.Wcs.HoistAdapter.Domain.Model.GetHoistStatus; +using Sln.Wcs.HoistAdapter.Domain.Model.HoistControl; + +namespace Sln.Wcs.HoistAdapter.Domain.Dto.GetHoistStatus; + +public class GetHoistStatusResultDto:ResultDto +{ + +} \ No newline at end of file diff --git a/Sln.Wcs.HoistAdapter/Domain/Dto/HoistControl/HoistControlDto.cs b/Sln.Wcs.HoistAdapter/Domain/Dto/HoistControl/HoistControlDto.cs new file mode 100644 index 0000000..e189a67 --- /dev/null +++ b/Sln.Wcs.HoistAdapter/Domain/Dto/HoistControl/HoistControlDto.cs @@ -0,0 +1,41 @@ +#region << 版 本 注 释 >> + +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:Mr.Wen's MacBook Pro +* 命名空间:Sln.Wcs.HoistAdapter.Domain.Domain.HoistControl +* 唯一标识:2B61FFB2-F10E-47BC-8B36-56524EB4F054 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-06 14:20:07 +* 版本:V1.0.0 +* 描述: +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ + +#endregion << 版 本 注 释 >> + +using Sln.Wcs.HoistAdapter.Domain.Enum; + +namespace Sln.Wcs.HoistAdapter.Domain.Dto.HoistControl; + +public class HoistControlDto +{ + /// + /// 提升机编号 + /// + public string hoistCode { get; set; } + + /// + /// 动作 + /// + public ControlAction action { get; set; } +} \ No newline at end of file diff --git a/Sln.Wcs.HoistAdapter/Domain/Dto/HoistControl/HoistControlResultDto.cs b/Sln.Wcs.HoistAdapter/Domain/Dto/HoistControl/HoistControlResultDto.cs new file mode 100644 index 0000000..b7b2550 --- /dev/null +++ b/Sln.Wcs.HoistAdapter/Domain/Dto/HoistControl/HoistControlResultDto.cs @@ -0,0 +1,35 @@ +#region << 版 本 注 释 >> + +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:Mr.Wen's MacBook Pro +* 命名空间:Sln.Wcs.HoistAdapter.Domain.Domain.HoistControl +* 唯一标识:2D12D182-6A86-4516-8AF2-B8E8FAC44CC6 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-06 14:20:15 +* 版本:V1.0.0 +* 描述: +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ + +#endregion << 版 本 注 释 >> + +using Sln.Wcs.Common.Domain.Dto; +using Sln.Wcs.HoistAdapter.Domain.Enum; +using Sln.Wcs.HoistAdapter.Domain.Model.HoistControl; + +namespace Sln.Wcs.HoistAdapter.Domain.Dto.HoistControl; + +public class HoistControlResultDto:ResultDto +{ + +} \ No newline at end of file diff --git a/Sln.Wcs.HoistAdapter/Domain/Dto/HoistTaskExecutor/HoistTaskExeDto.cs b/Sln.Wcs.HoistAdapter/Domain/Dto/HoistTaskExecutor/HoistTaskExeDto.cs new file mode 100644 index 0000000..aa3e217 --- /dev/null +++ b/Sln.Wcs.HoistAdapter/Domain/Dto/HoistTaskExecutor/HoistTaskExeDto.cs @@ -0,0 +1,49 @@ +#region << 版 本 注 释 >> + +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:Mr.Wen's MacBook Pro +* 命名空间:Sln.Wcs.HoistAdapter.Domain.Domain.HoistTaskExecutor +* 唯一标识:217D981D-DC12-4004-9B15-30E2C1D091C1 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-06 14:20:27 +* 版本:V1.0.0 +* 描述: +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ + +#endregion << 版 本 注 释 >> + +namespace Sln.Wcs.HoistAdapter.Domain.Dto.HoistTaskExecutor; + +public class HoistTaskExeDto +{ + /// + /// 提升机编号 + /// + public string hoistCode { get; set; } + + /// + /// 任务编号 + /// + public string taskCode { get; set; } + + /// + /// 起点 + /// + public int startPoint { get; set; } + + /// + /// 终点 + /// + public int endPoint { get; set; } +} \ No newline at end of file diff --git a/Sln.Wcs.HoistAdapter/Domain/Dto/HoistTaskExecutor/HoistTaskExeResultDto.cs b/Sln.Wcs.HoistAdapter/Domain/Dto/HoistTaskExecutor/HoistTaskExeResultDto.cs new file mode 100644 index 0000000..085c769 --- /dev/null +++ b/Sln.Wcs.HoistAdapter/Domain/Dto/HoistTaskExecutor/HoistTaskExeResultDto.cs @@ -0,0 +1,35 @@ +#region << 版 本 注 释 >> + +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:Mr.Wen's MacBook Pro +* 命名空间:Sln.Wcs.HoistAdapter.Domain.Domain.HoistTaskExecutor +* 唯一标识:399F7475-BEC6-42FA-AF32-AC99F5CBC35F +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-06 14:20:34 +* 版本:V1.0.0 +* 描述: +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ + +#endregion << 版 本 注 释 >> + +using Sln.Wcs.Common.Domain.Dto; +using Sln.Wcs.HoistAdapter.Domain.Enum; +using Sln.Wcs.HoistAdapter.Domain.Model.HoistTaskExecutor; + +namespace Sln.Wcs.HoistAdapter.Domain.Dto.HoistTaskExecutor; + +public class HoistTaskExeResultDto:ResultDto +{ + +} \ No newline at end of file diff --git a/Sln.Wcs.HoistAdapter/Domain/Enum/ControlAction.cs b/Sln.Wcs.HoistAdapter/Domain/Enum/ControlAction.cs new file mode 100644 index 0000000..85db88d --- /dev/null +++ b/Sln.Wcs.HoistAdapter/Domain/Enum/ControlAction.cs @@ -0,0 +1,29 @@ +namespace Sln.Wcs.HoistAdapter.Domain.Enum; + +public enum ControlAction +{ + /// + /// 移动 + /// + Move, + + /// + /// 开启 + /// + Start, + + /// + /// 停止 + /// + Stop, + + /// + /// 复位 + /// + Reset, + + /// + /// 校准 + /// + Calibrate +} \ No newline at end of file diff --git a/Sln.Wcs.HoistAdapter/Domain/Enum/HoistStatusEnum.cs b/Sln.Wcs.HoistAdapter/Domain/Enum/HoistStatusEnum.cs new file mode 100644 index 0000000..e3e652e --- /dev/null +++ b/Sln.Wcs.HoistAdapter/Domain/Enum/HoistStatusEnum.cs @@ -0,0 +1,11 @@ +namespace Sln.Wcs.HoistAdapter.Domain.Enum; + +public enum HoistStatusEnum +{ + 成功 = 0, + 参数相关的错误 = 1, + 重复发送上层系统不需要重发 = 6, + 其他未知错误调用失败后可以重试 = 99, + 该任务不存在上层系统不需重发需要人工介入处理=100, + SDK调用异常=101, +} \ No newline at end of file diff --git a/Sln.Wcs.HoistAdapter/Domain/Model/GetHoistStatus/GetHoistStatusResultModel.cs b/Sln.Wcs.HoistAdapter/Domain/Model/GetHoistStatus/GetHoistStatusResultModel.cs new file mode 100644 index 0000000..3896b1f --- /dev/null +++ b/Sln.Wcs.HoistAdapter/Domain/Model/GetHoistStatus/GetHoistStatusResultModel.cs @@ -0,0 +1,81 @@ +#region << 版 本 注 释 >> + +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:Mr.Wen's MacBook Pro +* 命名空间:Sln.Wcs.HoistAdapter.Domain.Model.GetHoistStatus +* 唯一标识:A8DBEA2F-0505-40E1-B810-2617B9B0EBA7 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-29 14:32:07 +* 版本:V1.0.0 +* 描述: +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ + +#endregion << 版 本 注 释 >> + +namespace Sln.Wcs.HoistAdapter.Domain.Model.GetHoistStatus; + +public class GetHoistStatusResultModel +{ + /// + /// 返回码 + /// + public string code { get; set; } + + /// + /// 返回消息 + /// + public string message { get; set; } + + /// + /// 提升机编号 + /// + public string hoistCode { get; set; } + + /// + /// 反馈任务执行指令:是否可以下发任务 + /// + public int canDispatchTask { get; set; } + + /// + /// 当前楼层 + /// + public int currentFloor { get; set; } + + /// + /// 接驳位状态(1~5 楼) + /// 索引 0 → 1楼,索引 1 → 2楼,... 索引 4 → 5楼 + /// + public int[] transferStationStatus { get; set; } = new int[5]; + + /// + /// 读写器触发状态(1~5 楼) + /// 索引 0 → 1楼,索引 1 → 2楼,... 索引 4 → 5楼 + /// + public int[] readerTriggerStatus { get; set; } = new int[5]; + + /// + /// 自动状态:true = 自动模式,false = 手动模式 + /// + public int isAutoMode { get; set; } + + /// + /// 屏蔽调度:true = 屏蔽中,false = 未屏蔽 + /// + public int isDispatchBlocked { get; set; } + + /// + /// 状态指示(详见 ) + /// + public int stateIndicator { get; set; } +} \ No newline at end of file diff --git a/Sln.Wcs.HoistAdapter/Domain/Model/HoistControl/HoistControlResultModel.cs b/Sln.Wcs.HoistAdapter/Domain/Model/HoistControl/HoistControlResultModel.cs new file mode 100644 index 0000000..c40174a --- /dev/null +++ b/Sln.Wcs.HoistAdapter/Domain/Model/HoistControl/HoistControlResultModel.cs @@ -0,0 +1,44 @@ +#region << 版 本 注 释 >> + +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:Mr.Wen's MacBook Pro +* 命名空间:Sln.Wcs.HoistAdapter.Domain.Model.HoistControl +* 唯一标识:4974C976-A0D5-4FB2-B4AD-F45E11935008 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-06 14:19:16 +* 版本:V1.0.0 +* 描述: +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ + +#endregion << 版 本 注 释 >> + +namespace Sln.Wcs.HoistAdapter.Domain.Model.HoistControl; + +public class HoistControlResultModel +{ + /// + /// 返回码 + /// + public string code { get; set; } + + /// + /// 返回消息 + /// + public string message { get; set; } + + /// + /// 任务编号 + /// + public string taskCode { get; set; } +} \ No newline at end of file diff --git a/Sln.Wcs.HoistAdapter/Domain/Model/HoistTaskExecutor/HoistTaskExeResultModel.cs b/Sln.Wcs.HoistAdapter/Domain/Model/HoistTaskExecutor/HoistTaskExeResultModel.cs new file mode 100644 index 0000000..b3f9e69 --- /dev/null +++ b/Sln.Wcs.HoistAdapter/Domain/Model/HoistTaskExecutor/HoistTaskExeResultModel.cs @@ -0,0 +1,44 @@ +#region << 版 本 注 释 >> + +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:Mr.Wen's MacBook Pro +* 命名空间:Sln.Wcs.HoistAdapter.Domain.Model.HoistTaskExecutor +* 唯一标识:A4E0666A-66FA-46AE-B783-E385F905092E +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-06 14:19:40 +* 版本:V1.0.0 +* 描述: +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ + +#endregion << 版 本 注 释 >> + +namespace Sln.Wcs.HoistAdapter.Domain.Model.HoistTaskExecutor; + +public class HoistTaskExeResultModel +{ + /// + /// 返回码 + /// + public string code { get; set; } + + /// + /// 返回消息 + /// + public string message { get; set; } + + /// + /// 任务编号 + /// + public string taskCode { get; set; } +} \ No newline at end of file diff --git a/Sln.Wcs.HoistAdapter/Service/IHoistService.cs b/Sln.Wcs.HoistAdapter/Service/IHoistService.cs new file mode 100644 index 0000000..acaa89f --- /dev/null +++ b/Sln.Wcs.HoistAdapter/Service/IHoistService.cs @@ -0,0 +1,55 @@ +#region << 版 本 注 释 >> + +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:Mr.Wen's MacBook Pro +* 命名空间:Sln.Wcs.HoistAdapter.Service +* 唯一标识:6A17F59C-C8AD-4A71-BF65-59412634AF88 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-06 14:23:32 +* 版本:V1.0.0 +* 描述: +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ + +#endregion << 版 本 注 释 >> + +using Sln.Wcs.HoistAdapter.Domain.Dto.GetHoistStatus; +using Sln.Wcs.HoistAdapter.Domain.Dto.HoistControl; +using Sln.Wcs.HoistAdapter.Domain.Dto.HoistTaskExecutor; + +namespace Sln.Wcs.HoistAdapter.Service; + +public interface IHoistService +{ + /// + /// 提升机控制 + /// MOVE_TO, STOP, EMERGENCY_STOP, RESET, CALIBRATE + /// + /// + /// + HoistControlResultDto HoistControl(HoistControlDto hoistControlDto); + + /// + /// 提升机任务执行 + /// + /// + /// + HoistTaskExeResultDto HoistTaskExecutor(HoistTaskExeDto hoistTaskExeDto); + + /// + /// 获取提升机状态 + /// + /// + /// + GetHoistStatusResultDto GetHoistStatus(GetHoistStatusDto hoistStatusDto); +} \ No newline at end of file diff --git a/Sln.Wcs.HoistAdapter/Service/Impl/HoistService.cs b/Sln.Wcs.HoistAdapter/Service/Impl/HoistService.cs new file mode 100644 index 0000000..f987d55 --- /dev/null +++ b/Sln.Wcs.HoistAdapter/Service/Impl/HoistService.cs @@ -0,0 +1,195 @@ +#region << 版 本 注 释 >> + +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:Mr.Wen's MacBook Pro +* 命名空间:Sln.Wcs.HoistAdapter.Service.Impl +* 唯一标识:E44EB57C-A5C0-49F3-9C90-602B14CF613B +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-06 14:23:55 +* 版本:V1.0.0 +* 描述: +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ + +#endregion << 版 本 注 释 >> + +using Sln.Wcs.HoistAdapter.Domain.Dto.GetHoistStatus; +using Sln.Wcs.HoistAdapter.Domain.Dto.HoistControl; +using Sln.Wcs.HoistAdapter.Domain.Dto.HoistTaskExecutor; +using Sln.Wcs.HoistAdapter.Domain.Enum; +using Sln.Wcs.HoistAdapter.Domain.Model.GetHoistStatus; +using Sln.Wcs.HoistAdapter.Domain.Model.HoistControl; +using Sln.Wcs.HoistAdapter.Domain.Model.HoistTaskExecutor; +using Sln.Wcs.HoistAdapter.Util; +using Sln.Wcs.HoistSdk; + +namespace Sln.Wcs.HoistAdapter.Service.Impl; + +public class HoistService:IHoistService +{ + + private readonly IHoistSdk hoistSdk; + private readonly ApiResultCodeUtil codeUtil; + + public HoistService(IHoistSdk hoistSdk, ApiResultCodeUtil codeUtil) + { + this.hoistSdk = hoistSdk; + this.codeUtil = codeUtil; + } + + /// + /// 提升机控制 + /// + /// + /// + /// + public HoistControlResultDto HoistControl(HoistControlDto hoistControlDto) + { + try + { + if (hoistControlDto == null) + { + throw new ArgumentException($"输入参数为空。"); + } + + var data = new HoistSdk.Dto.HoistControl.HoistControlDto() + { + hoistCode = hoistControlDto.hoistCode, + action = (HoistSdk.Enum.ControlAction)hoistControlDto.action, + }; + + var resp = this.hoistSdk.HoistControl(data); + + bool parseRes = this.codeUtil.parse(resp.code, resp.message, out HoistStatusEnum hoistStatusEnum); + + return new HoistControlResultDto() + { + code = hoistStatusEnum, + msg = resp.message, + data = new HoistControlResultModel() + { + code = resp.code, + message = resp.message, + taskCode = resp.taskCode, + }, + }; + + } + catch (Exception ex) + { + return new HoistControlResultDto() + { + code = HoistStatusEnum.SDK调用异常, + msg = ex.Message, + }; + } + } + + /// + /// 提升机任务执行 + /// + /// + /// + /// + public HoistTaskExeResultDto HoistTaskExecutor(HoistTaskExeDto hoistTaskExeDto) + { + try + { + if (hoistTaskExeDto == null) + { + throw new ArgumentException($"输入参数为空。"); + } + + var data = new HoistSdk.Dto.HoistTaskExecutor.HoistTaskExeDto() + { + hoistCode = hoistTaskExeDto.hoistCode, + taskCode = hoistTaskExeDto.taskCode, + startPoint = hoistTaskExeDto.startPoint, + endPoint = hoistTaskExeDto.endPoint, + + }; + + var resp = this.hoistSdk.HoistTaskExecutor(data); + + bool parseRes = this.codeUtil.parse(resp.code, resp.message, out HoistStatusEnum hoistStatusEnum); + + return new HoistTaskExeResultDto() + { + code = hoistStatusEnum, + msg = resp.message, + data = new HoistTaskExeResultModel() + { + code = resp.code, + message = resp.message, + taskCode = resp.taskCode, + }, + }; + + } + catch (Exception ex) + { + return new HoistTaskExeResultDto() + { + code = HoistStatusEnum.SDK调用异常, + msg = ex.Message, + }; + } + } + + /// + /// 获取提升机状态 + /// + /// + /// + /// + public GetHoistStatusResultDto GetHoistStatus(GetHoistStatusDto hoistStatusDto) + { + try + { + if (hoistStatusDto == null) + { + throw new ArgumentException($"输入参数为空。"); + } + + var data = new HoistSdk.Dto.GetHoistStatus.GetHoistStatusDto() + { + hoistCode = hoistStatusDto.hoistCode, + }; + + var resp = this.hoistSdk.GetHoistStatus(data); + + bool parseRes = this.codeUtil.parse(resp.code, resp.message, out HoistStatusEnum hoistStatusEnum); + + return new GetHoistStatusResultDto() + { + code = hoistStatusEnum, + msg = resp.message, + data = new GetHoistStatusResultModel() + { + code = resp.code, + message = resp.message, + hoistCode = resp.hoistCode, + }, + }; + + } + catch (Exception ex) + { + return new GetHoistStatusResultDto() + { + code = HoistStatusEnum.SDK调用异常, + msg = ex.Message, + }; + } + } +} \ No newline at end of file diff --git a/Sln.Wcs.HoistAdapter/Sln.Wcs.HoistAdapter.csproj b/Sln.Wcs.HoistAdapter/Sln.Wcs.HoistAdapter.csproj new file mode 100644 index 0000000..67084b5 --- /dev/null +++ b/Sln.Wcs.HoistAdapter/Sln.Wcs.HoistAdapter.csproj @@ -0,0 +1,14 @@ + + + + net8.0 + enable + enable + + + + + + + + diff --git a/Sln.Wcs.HoistAdapter/Util/ApiResultCodeUtil.cs b/Sln.Wcs.HoistAdapter/Util/ApiResultCodeUtil.cs new file mode 100644 index 0000000..c16ac7e --- /dev/null +++ b/Sln.Wcs.HoistAdapter/Util/ApiResultCodeUtil.cs @@ -0,0 +1,73 @@ +#region << 版 本 注 释 >> + +/*-------------------------------------------------------------------- +* 版权所有 (c) 2026 WenJY 保留所有权利。 +* CLR版本:4.0.30319.42000 +* 机器名称:Mr.Wen's MacBook Pro +* 命名空间:Sln.Wcs.HoistAdapter.Util +* 唯一标识:50A6C50A-87A8-4CC1-98DF-5C2943AB8ED5 +* +* 创建者:WenJY +* 电子邮箱: +* 创建时间:2026-05-06 14:53:36 +* 版本:V1.0.0 +* 描述: +* +*-------------------------------------------------------------------- +* 修改人: +* 时间: +* 修改说明: +* +* 版本:V1.0.0 +*--------------------------------------------------------------------*/ + +#endregion << 版 本 注 释 >> + +using Sln.Wcs.HoistAdapter.Domain.Enum; + +namespace Sln.Wcs.HoistAdapter.Util; + +public class ApiResultCodeUtil +{ + /// + /// + /// + /// + /// + /// + /// + public bool parse(string respCode, string respMsg, out HoistStatusEnum hoistStatusEnum) + { + bool isRes = false; + + hoistStatusEnum = HoistStatusEnum.成功; + + switch (respCode) + { + case "0": + if (respMsg.Contains("成功")) + { + hoistStatusEnum = HoistStatusEnum.成功; + isRes = true; + } + break; + case "1": + hoistStatusEnum = HoistStatusEnum.参数相关的错误; + break; + case "6": + hoistStatusEnum = HoistStatusEnum.重复发送上层系统不需要重发; + break; + case "99": + hoistStatusEnum = HoistStatusEnum.其他未知错误调用失败后可以重试; + break; + case "100": + hoistStatusEnum = HoistStatusEnum.该任务不存在上层系统不需重发需要人工介入处理; + break; + default: + isRes = true; + break; + } + + return isRes; + } +} \ No newline at end of file