change - 修改 api 为adapter

dev
WenJY 2 weeks ago
parent 6d31e34145
commit 9f1ca69ed5

@ -1,69 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.CancelTask
{
/// <summary>
/// 任务取消请求参数
/// </summary>
public class CancelTaskDto
{
/// <summary>
/// 请求编号,每个请求都要一个唯一编号, 同一个请求重复提交, 使用同一编号。;
/// </summary>
public string reqCode { get; set; }
/// <summary>
/// 请求时间截 格式: “yyyy-MM-dd HH:mm:ss”。
/// </summary>
public string reqTime { get; set; }
/// <summary>
/// 客户端编号如PDAHCWMS等。
/// </summary>
public string clientCode { get; set; }
/// <summary>
/// 令牌号, 由调度系统颁发
/// </summary>
public string tokenCode { get; set; }
/// <summary>
/// 工作位与RCS-2000端配置的位置名称一致。
/// </summary>
public string forceCancel { get; set; }
/// <summary>
/// 货架号,采用货架号触发的方式。
/// </summary>
public string matterArea { get; set; }
public string agvCode { get; set; }
public string taskCode { get; set; }
}
}

@ -1,40 +0,0 @@
using Sln.Wcs.Common.Domain.Dto;
using Sln.Wcs.HikRoBotApi.Domain.Model.CancelTask;
using Sln.Wcs.HikRoBotApi.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.CancelTask
{
/// <summary>
/// 任务继续返回参数
/// </summary>
public class CancelTaskResultDto : ResultDto<HikRoBotStatusEnum, CancelTaskResultModel>
{
}
}

@ -1,56 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.CarrierBind
{
/// <summary>
/// 载具绑定请求参数
/// </summary>
public class CarrierBindDto
{
/// <summary>
/// 载具编号
/// </summary>
public string CarrierCode { get; set; }
/// <summary>
/// 站点编号
/// </summary>
public string SiteCode { get; set; }
/// <summary>
/// 载具方向
/// </summary>
public int? CarrierDir { get; set; }
/// <summary>
/// 自定义数据
/// </summary>
public string Extra { get; set; }
}
}

@ -1,40 +0,0 @@
using Sln.Wcs.Common.Domain.Dto;
using Sln.Wcs.HikRoBotApi.Domain.Model.CarrierBind;
using Sln.Wcs.HikRoBotApi.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.CarrierBind
{
/// <summary>
/// 载具绑定返回参数
/// </summary>
public class CarrierBindResultDto : ResultDto<HikRoBotStatusEnum, CarrierBindResultModel>
{
}
}

@ -1,46 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.CarrierLock
{
/// <summary>
/// 载具锁定请求参数
/// </summary>
public class CarrierLockDto
{
/// <summary>
/// 载具编号
/// </summary>
public string CarrierCode { get; set; }
/// <summary>
/// 调用方式
/// </summary>
public string Invoke { get; set; }
}
}

@ -1,40 +0,0 @@
using Sln.Wcs.Common.Domain.Dto;
using Sln.Wcs.HikRoBotApi.Domain.Model.CarrierLock;
using Sln.Wcs.HikRoBotApi.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.CarrierLock
{
/// <summary>
/// 载具锁定返回参数
/// </summary>
public class CarrierLockResultDto : ResultDto<HikRoBotStatusEnum, CarrierLockResultModel>
{
}
}

@ -1,51 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.CarrierUnbind
{
/// <summary>
/// 载具解绑请求参数
/// </summary>
public class CarrierUnbindDto
{
/// <summary>
/// 载具编号
/// </summary>
public string CarrierCode { get; set; }
/// <summary>
/// 站点编号
/// </summary>
public string SiteCode { get; set; }
/// <summary>
/// 自定义数据
/// </summary>
public string Extra { get; set; }
}
}

@ -1,40 +0,0 @@
using Sln.Wcs.Common.Domain.Dto;
using Sln.Wcs.HikRoBotApi.Domain.Model.CarrierUnbind;
using Sln.Wcs.HikRoBotApi.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.CarrierUnbind
{
/// <summary>
/// 载具解绑返回参数
/// </summary>
public class CarrierUnbindResultDto : ResultDto<HikRoBotStatusEnum, CarrierUnbindResultModel>
{
}
}

@ -1,71 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.ContinueTask
{
/// <summary>
/// 任务继续请求参数
/// </summary>
public class ContinueTaskDto
{
/// <summary>
/// 请求编号,每个请求都要一个唯一编号, 同一个请求重复提交, 使用同一编号。;
/// </summary>
public string reqCode { get; set; }
/// <summary>
/// 请求时间截 格式: “yyyy-MM-dd HH:mm:ss”。
/// </summary>
public string reqTime { get; set; }
/// <summary>
/// 客户端编号如PDAHCWMS等。
/// </summary>
public string clientCode { get; set; }
/// <summary>
/// 令牌号, 由调度系统颁发
/// </summary>
public string tokenCode { get; set; }
/// <summary>
/// 工作位与RCS-2000端配置的位置名称一致。
/// </summary>
public string wbCode { get; set; }
/// <summary>
/// 货架号,采用货架号触发的方式。
/// </summary>
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; }
}
}

@ -1,41 +0,0 @@
using Sln.Wcs.Common.Domain.Dto;
using Sln.Wcs.HikRoBotApi.Domain.Model.ContinueTask;
using Sln.Wcs.HikRoBotApi.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.ContinueTask
{
/// <summary>
/// 任务继续返回参数
/// </summary>
public class ContinueTaskResultDto : ResultDto<HikRoBotStatusEnum, ContinueTaskResultModel>
{
}
}

@ -1,66 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.EquipmentNotify
{
/// <summary>
/// 设备通知请求参数
/// </summary>
public class EquipmentNotifyDto
{
/// <summary>
/// 设备编号
/// </summary>
public string EqptCode { get; set; }
/// <summary>
/// 任务编号
/// </summary>
public string TaskCode { get; set; }
/// <summary>
/// 动作状态
/// </summary>
public string ActionStatus { get; set; }
/// <summary>
/// 站点编号
/// </summary>
public string SiteCode { get; set; }
/// <summary>
/// 载具信息
/// </summary>
public string CarrierInfo { get; set; }
/// <summary>
/// 自定义数据
/// </summary>
public string Extra { get; set; }
}
}

@ -1,40 +0,0 @@
using Sln.Wcs.Common.Domain.Dto;
using Sln.Wcs.HikRoBotApi.Domain.Model.EquipmentNotify;
using Sln.Wcs.HikRoBotApi.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.EquipmentNotify
{
/// <summary>
/// 设备通知返回参数
/// </summary>
public class EquipmentNotifyResultDto : ResultDto<HikRoBotStatusEnum, EquipmentNotifyResultModel>
{
}
}

@ -1,85 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.GbCancelTask
{
/// <summary>
/// GB标准-任务取消请求参数
/// </summary>
public class GbCancelTaskDto
{
/// <summary>
/// 任务号,全局唯一
/// </summary>
public string RobotTaskCode { get; set; }
/// <summary>
/// 任务取消类型CANCEL(软取消)/DROP(硬取消)
/// </summary>
public string CancelType { get; set; }
/// <summary>
/// 回库的载具编号
/// </summary>
public string CarrierCode { get; set; }
/// <summary>
/// 机器人编号
/// </summary>
public string RobotCode { get; set; }
/// <summary>
/// 取消原因
/// </summary>
public string Reason { get; set; }
/// <summary>
/// 软取消的回库任务类型
/// </summary>
public string ReturnTaskType { get; set; }
/// <summary>
/// 目标区域
/// </summary>
public TargetRoute TargetRoute { get; set; }
/// <summary>
/// 自定义扩展字段
/// </summary>
public object Extra { get; set; }
}
/// <summary>
/// 目标路径
/// </summary>
public class TargetRoute
{
public string Type { get; set; }
public string Code { get; set; }
}
}

@ -1,40 +0,0 @@
using Sln.Wcs.Common.Domain.Dto;
using Sln.Wcs.HikRoBotApi.Domain.Model.GbCancelTask;
using Sln.Wcs.HikRoBotApi.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.GbCancelTask
{
/// <summary>
/// GB标准-任务取消返回参数
/// </summary>
public class GbCancelTaskResultDto : ResultDto<HikRoBotStatusEnum, GbCancelTaskResultModel>
{
}
}

@ -1,69 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.GbContinueTask
{
/// <summary>
/// GB标准-任务继续执行请求参数
/// </summary>
public class GbContinueTaskDto
{
/// <summary>
/// 触发类型SITE/CARRIER/ROBOT/TASK
/// </summary>
public string TriggerType { get; set; }
/// <summary>
/// 与triggerType对应的触发编号
/// </summary>
public string TriggerCode { get; set; }
/// <summary>
/// 执行任务的下一个目标位置
/// </summary>
public TargetRoute TargetRoute { get; set; }
/// <summary>
/// 自定义扩展参数
/// </summary>
public object Extra { get; set; }
}
/// <summary>
/// 目标路径
/// </summary>
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<string> RobotCode { get; set; }
public object Extra { get; set; }
}
}

@ -1,40 +0,0 @@
using Sln.Wcs.Common.Domain.Dto;
using Sln.Wcs.HikRoBotApi.Domain.Model.GbContinueTask;
using Sln.Wcs.HikRoBotApi.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.GbContinueTask
{
/// <summary>
/// GB标准-任务继续执行返回参数
/// </summary>
public class GbContinueTaskResultDto : ResultDto<HikRoBotStatusEnum, GbContinueTaskResultModel>
{
}
}

@ -1,104 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.GbTaskSubmit
{
/// <summary>
/// GB标准-任务下发请求参数
/// </summary>
public class GbTaskSubmitDto
{
/// <summary>
/// 任务类型
/// </summary>
public string TaskType { get; set; }
/// <summary>
/// 目标路径列表
/// </summary>
public List<TargetRoute> TargetRoute { get; set; }
/// <summary>
/// 初始优先级 1~120
/// </summary>
public int? InitPriority { get; set; }
/// <summary>
/// 截止时间
/// </summary>
public string Deadline { get; set; }
/// <summary>
/// 期望开始时间
/// </summary>
public string ExpectedStartTime { get; set; }
/// <summary>
/// 机器人类型 GROUPS/ROBOTS
/// </summary>
public string RobotType { get; set; }
/// <summary>
/// 指定机器人编号列表
/// </summary>
public List<string> RobotCode { get; set; }
/// <summary>
/// 是否可中断 0/1
/// </summary>
public int? Interrupt { get; set; }
/// <summary>
/// 任务编号
/// </summary>
public string RobotTaskCode { get; set; }
/// <summary>
/// 组编号
/// </summary>
public string GroupCode { get; set; }
/// <summary>
/// 自定义扩展字段
/// </summary>
public object Extra { get; set; }
}
/// <summary>
/// 目标路径
/// </summary>
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<string> RobotCode { get; set; }
public object Extra { get; set; }
}
}

@ -1,40 +0,0 @@
using Sln.Wcs.Common.Domain.Dto;
using Sln.Wcs.HikRoBotApi.Domain.Model.GbTaskSubmit;
using Sln.Wcs.HikRoBotApi.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.GbTaskSubmit
{
/// <summary>
/// GB标准-任务下发返回参数
/// </summary>
public class GbTaskSubmitResultDto : ResultDto<HikRoBotStatusEnum, GbTaskSubmitResultModel>
{
}
}

@ -1,107 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.GenAgvSchedulingTask
{
/// <summary>
/// GB标准-生成任务单请求参数
/// </summary>
public class GenAgvSchedulingTaskDto
{
/// <summary>
/// 任务类型
/// </summary>
public string TaskType { get; set; }
/// <summary>
/// 目标路径列表
/// </summary>
public List<TargetRoute> TargetRoute { get; set; }
/// <summary>
/// 初始优先级
/// </summary>
public int? InitPriority { get; set; }
/// <summary>
/// 截止时间
/// </summary>
public string Deadline { get; set; }
/// <summary>
/// 期望开始时间
/// </summary>
public string ExpectedStartTime { get; set; }
/// <summary>
/// 机器人类型
/// </summary>
public string RobotType { get; set; }
/// <summary>
/// 指定机器人编号列表
/// </summary>
public List<string> RobotCode { get; set; }
/// <summary>
/// 是否可中断
/// </summary>
public int? Interrupt { get; set; }
/// <summary>
/// 机器人任务编号
/// </summary>
public string RobotTaskCode { get; set; }
/// <summary>
/// 组编号
/// </summary>
public string GroupCode { get; set; }
/// <summary>
/// 自定义数据
/// </summary>
public string Extra { get; set; }
}
/// <summary>
/// 目标路径
/// </summary>
public class TargetRoute
{
/// <summary>
/// 类型
/// </summary>
public string Type { get; set; }
/// <summary>
/// 编号
/// </summary>
public string Code { get; set; }
}
}

@ -1,40 +0,0 @@
using Sln.Wcs.Common.Domain.Dto;
using Sln.Wcs.HikRoBotApi.Domain.Model.GenAgvSchedulingTask;
using Sln.Wcs.HikRoBotApi.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.GenAgvSchedulingTask
{
/// <summary>
/// GB标准-生成任务单返回参数
/// </summary>
public class GenAgvSchedulingTaskResultDto : ResultDto<HikRoBotStatusEnum, GenAgvSchedulingTaskResultModel>
{
}
}

@ -1,46 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.MatLabelBind
{
/// <summary>
/// 物料标签绑定请求参数
/// </summary>
public class MatLabelBindDto
{
/// <summary>
/// 载具编号
/// </summary>
public string CarrierCode { get; set; }
/// <summary>
/// 物料标签
/// </summary>
public string MatLabel { get; set; }
}
}

@ -1,40 +0,0 @@
using Sln.Wcs.Common.Domain.Dto;
using Sln.Wcs.HikRoBotApi.Domain.Model.MatLabelBind;
using Sln.Wcs.HikRoBotApi.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.MatLabelBind
{
/// <summary>
/// 物料标签绑定返回参数
/// </summary>
public class MatLabelBindResultDto : ResultDto<HikRoBotStatusEnum, MatLabelBindResultModel>
{
}
}

@ -1,46 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.MatLabelUnbind
{
/// <summary>
/// 物料标签解绑请求参数
/// </summary>
public class MatLabelUnbindDto
{
/// <summary>
/// 载具编号
/// </summary>
public string CarrierCode { get; set; }
/// <summary>
/// 物料标签
/// </summary>
public string MatLabel { get; set; }
}
}

@ -1,40 +0,0 @@
using Sln.Wcs.Common.Domain.Dto;
using Sln.Wcs.HikRoBotApi.Domain.Model.MatLabelUnbind;
using Sln.Wcs.HikRoBotApi.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.MatLabelUnbind
{
/// <summary>
/// 物料标签解绑返回参数
/// </summary>
public class MatLabelUnbindResultDto : ResultDto<HikRoBotStatusEnum, MatLabelUnbindResultModel>
{
}
}

@ -1,76 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.PreTask
{
/// <summary>
/// 预任务请求参数
/// </summary>
public class PreTaskDto
{
/// <summary>
/// 站点编号
/// </summary>
public string SiteCode { get; set; }
/// <summary>
/// 下次任务时间
/// </summary>
public string NextTaskTime { get; set; }
/// <summary>
/// 机器人类型
/// </summary>
public string RobotType { get; set; }
/// <summary>
/// 优先级
/// </summary>
public int? Priority { get; set; }
/// <summary>
/// 任务数量
/// </summary>
public int? TaskCount { get; set; }
/// <summary>
/// 容量数量
/// </summary>
public int? CapacityCount { get; set; }
/// <summary>
/// AMR方向
/// </summary>
public string AmrDir { get; set; }
/// <summary>
/// 自定义数据
/// </summary>
public string Extra { get; set; }
}
}

@ -1,40 +0,0 @@
using Sln.Wcs.Common.Domain.Dto;
using Sln.Wcs.HikRoBotApi.Domain.Model.PreTask;
using Sln.Wcs.HikRoBotApi.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.PreTask
{
/// <summary>
/// 预任务返回参数
/// </summary>
public class PreTaskResultDto : ResultDto<HikRoBotStatusEnum, PreTaskResultModel>
{
}
}

@ -1,41 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.QueryCarrier
{
/// <summary>
/// 查询载具状态请求参数
/// </summary>
public class QueryCarrierDto
{
/// <summary>
/// 载具编号
/// </summary>
public string CarrierCode { get; set; }
}
}

@ -1,40 +0,0 @@
using Sln.Wcs.Common.Domain.Dto;
using Sln.Wcs.HikRoBotApi.Domain.Model.QueryCarrier;
using Sln.Wcs.HikRoBotApi.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.QueryCarrier
{
/// <summary>
/// 查询载具状态返回参数
/// </summary>
public class QueryCarrierResultDto : ResultDto<HikRoBotStatusEnum, QueryCarrierResultModel>
{
}
}

@ -1,41 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.QueryRobot
{
/// <summary>
/// 查询机器人状态请求参数
/// </summary>
public class QueryRobotDto
{
/// <summary>
/// 机器人编号
/// </summary>
public string SingleRobotCode { get; set; }
}
}

@ -1,40 +0,0 @@
using Sln.Wcs.Common.Domain.Dto;
using Sln.Wcs.HikRoBotApi.Domain.Model.QueryRobot;
using Sln.Wcs.HikRoBotApi.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.QueryRobot
{
/// <summary>
/// 查询机器人状态返回参数
/// </summary>
public class QueryRobotResultDto : ResultDto<HikRoBotStatusEnum, QueryRobotResultModel>
{
}
}

@ -1,41 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.QueryTask
{
/// <summary>
/// 查询任务状态请求参数
/// </summary>
public class QueryTaskDto
{
/// <summary>
/// 机器人任务编号
/// </summary>
public string RobotTaskCode { get; set; }
}
}

@ -1,40 +0,0 @@
using Sln.Wcs.Common.Domain.Dto;
using Sln.Wcs.HikRoBotApi.Domain.Model.QueryTask;
using Sln.Wcs.HikRoBotApi.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.QueryTask
{
/// <summary>
/// 查询任务状态返回参数
/// </summary>
public class QueryTaskResultDto : ResultDto<HikRoBotStatusEnum, QueryTaskResultModel>
{
}
}

@ -1,86 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.SiteBind
{
/// <summary>
/// 站点绑定请求参数
/// </summary>
public class SiteBindDto
{
/// <summary>
/// 槽位类别
/// </summary>
public string SlotCategory { get; set; }
/// <summary>
/// 槽位编号
/// </summary>
public string SlotCode { get; set; }
/// <summary>
/// 载具类别
/// </summary>
public string CarrierCategory { get; set; }
/// <summary>
/// 载具类型
/// </summary>
public string CarrierType { get; set; }
/// <summary>
/// 载具编号
/// </summary>
public string CarrierCode { get; set; }
/// <summary>
/// 载具方向
/// </summary>
public int? CarrierDir { get; set; }
/// <summary>
/// 调用方式
/// </summary>
public string Invoke { get; set; }
/// <summary>
/// 堆叠标签
/// </summary>
public string StackLabel { get; set; }
/// <summary>
/// 列数
/// </summary>
public int? ColCount { get; set; }
/// <summary>
/// 自定义数据
/// </summary>
public string Extra { get; set; }
}
}

@ -1,40 +0,0 @@
using Sln.Wcs.Common.Domain.Dto;
using Sln.Wcs.HikRoBotApi.Domain.Model.SiteBind;
using Sln.Wcs.HikRoBotApi.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.SiteBind
{
/// <summary>
/// 站点绑定返回参数
/// </summary>
public class SiteBindResultDto : ResultDto<HikRoBotStatusEnum, SiteBindResultModel>
{
}
}

@ -1,46 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.SiteLock
{
/// <summary>
/// 站点锁定请求参数
/// </summary>
public class SiteLockDto
{
/// <summary>
/// 站点编号
/// </summary>
public string SiteCode { get; set; }
/// <summary>
/// 调用方式
/// </summary>
public string Invoke { get; set; }
}
}

@ -1,40 +0,0 @@
using Sln.Wcs.Common.Domain.Dto;
using Sln.Wcs.HikRoBotApi.Domain.Model.SiteLock;
using Sln.Wcs.HikRoBotApi.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.SiteLock
{
/// <summary>
/// 站点锁定返回参数
/// </summary>
public class SiteLockResultDto : ResultDto<HikRoBotStatusEnum, SiteLockResultModel>
{
}
}

@ -1,82 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.TaskGroup
{
/// <summary>
/// 任务组请求参数
/// </summary>
public class TaskGroupDto
{
/// <summary>
/// 组编号
/// </summary>
public string GroupCode { get; set; }
/// <summary>
/// 策略类型
/// </summary>
public string Strategy { get; set; }
/// <summary>
/// 策略值
/// </summary>
public string StrategyValue { get; set; }
/// <summary>
/// 组内任务序号
/// </summary>
public string GroupSeq { get; set; }
/// <summary>
/// 目标路径
/// </summary>
public TargetRoute TargetRoute { get; set; }
/// <summary>
/// 自定义数据
/// </summary>
public string Data { get; set; }
}
/// <summary>
/// 目标路径
/// </summary>
public class TargetRoute
{
/// <summary>
/// 类型
/// </summary>
public string Type { get; set; }
/// <summary>
/// 编号
/// </summary>
public string Code { get; set; }
}
}

@ -1,40 +0,0 @@
using Sln.Wcs.Common.Domain.Dto;
using Sln.Wcs.HikRoBotApi.Domain.Model.TaskGroup;
using Sln.Wcs.HikRoBotApi.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.TaskGroup
{
/// <summary>
/// 任务组返回参数
/// </summary>
public class TaskGroupResultDto : ResultDto<HikRoBotStatusEnum, TaskGroupResultModel>
{
}
}

@ -1,56 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.TaskPriority
{
/// <summary>
/// 任务优先级请求参数
/// </summary>
public class TaskPriorityDto
{
/// <summary>
/// 机器人任务编号
/// </summary>
public string RobotTaskCode { get; set; }
/// <summary>
/// 初始优先级
/// </summary>
public int? InitPriority { get; set; }
/// <summary>
/// 截止时间
/// </summary>
public string Deadline { get; set; }
/// <summary>
/// 自定义数据
/// </summary>
public string Extra { get; set; }
}
}

@ -1,40 +0,0 @@
using Sln.Wcs.Common.Domain.Dto;
using Sln.Wcs.HikRoBotApi.Domain.Model.TaskPriority;
using Sln.Wcs.HikRoBotApi.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.TaskPriority
{
/// <summary>
/// 任务优先级返回参数
/// </summary>
public class TaskPriorityResultDto : ResultDto<HikRoBotStatusEnum, TaskPriorityResultModel>
{
}
}

@ -1,81 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.ZoneBanish
{
/// <summary>
/// 区域驱逐请求参数
/// </summary>
public class ZoneBanishDto
{
/// <summary>
/// 区域编号
/// </summary>
public string ZoneCode { get; set; }
/// <summary>
/// 区域编号列表
/// </summary>
public List<string> ZoneCodes { get; set; }
/// <summary>
/// 目标区域编号
/// </summary>
public string TargetZoneCode { get; set; }
/// <summary>
/// 是否暂停
/// </summary>
public bool Pause { get; set; }
/// <summary>
/// 是否需要报告
/// </summary>
public bool Report { get; set; }
/// <summary>
/// 控制模式
/// </summary>
public string ControlMode { get; set; }
/// <summary>
/// 过期时间
/// </summary>
public string ExpireTime { get; set; }
/// <summary>
/// 调用方式
/// </summary>
public string Invoke { get; set; }
/// <summary>
/// 自定义数据
/// </summary>
public string Extra { get; set; }
}
}

@ -1,40 +0,0 @@
using Sln.Wcs.Common.Domain.Dto;
using Sln.Wcs.HikRoBotApi.Domain.Model.ZoneBanish;
using Sln.Wcs.HikRoBotApi.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.ZoneBanish
{
/// <summary>
/// 区域驱逐返回参数
/// </summary>
public class ZoneBanishResultDto : ResultDto<HikRoBotStatusEnum, ZoneBanishResultModel>
{
}
}

@ -1,71 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.ZoneBlockade
{
/// <summary>
/// 区域封锁请求参数
/// </summary>
public class ZoneBlockadeDto
{
/// <summary>
/// 区域编号
/// </summary>
public string ZoneCode { get; set; }
/// <summary>
/// 地图编号
/// </summary>
public string MapCode { get; set; }
/// <summary>
/// 调用方式
/// </summary>
public string Invoke { get; set; }
/// <summary>
/// 是否暂停
/// </summary>
public bool Pause { get; set; }
/// <summary>
/// 是否需要报告
/// </summary>
public bool Report { get; set; }
/// <summary>
/// 禁用的站点
/// </summary>
public int? DisableSite { get; set; }
/// <summary>
/// 启用的站点
/// </summary>
public int? EnableSite { get; set; }
}
}

@ -1,40 +0,0 @@
using Sln.Wcs.Common.Domain.Dto;
using Sln.Wcs.HikRoBotApi.Domain.Model.ZoneBlockade;
using Sln.Wcs.HikRoBotApi.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.ZoneBlockade
{
/// <summary>
/// 区域封锁返回参数
/// </summary>
public class ZoneBlockadeResultDto : ResultDto<HikRoBotStatusEnum, ZoneBlockadeResultModel>
{
}
}

@ -1,71 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.ZoneHoming
{
/// <summary>
/// 区域回巢请求参数
/// </summary>
public class ZoneHomingDto
{
/// <summary>
/// 地图编号
/// </summary>
public string MapCode { get; set; }
/// <summary>
/// 区域编号
/// </summary>
public string ZoneCode { get; set; }
/// <summary>
/// 区域编号列表
/// </summary>
public List<string> ZoneCodes { get; set; }
/// <summary>
/// 是否自动关机
/// </summary>
public bool AutoShutdown { get; set; }
/// <summary>
/// 启动时间
/// </summary>
public string BootTime { get; set; }
/// <summary>
/// 过期时间
/// </summary>
public string ExpireTime { get; set; }
/// <summary>
/// 自定义数据
/// </summary>
public string Extra { get; set; }
}
}

@ -1,40 +0,0 @@
using Sln.Wcs.Common.Domain.Dto;
using Sln.Wcs.HikRoBotApi.Domain.Model.ZoneHoming;
using Sln.Wcs.HikRoBotApi.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.ZoneHoming
{
/// <summary>
/// 区域回巢返回参数
/// </summary>
public class ZoneHomingResultDto : ResultDto<HikRoBotStatusEnum, ZoneHomingResultModel>
{
}
}

@ -1,51 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.ZonePause
{
/// <summary>
/// 区域暂停请求参数
/// </summary>
public class ZonePauseDto
{
/// <summary>
/// 区域编号
/// </summary>
public string ZoneCode { get; set; }
/// <summary>
/// 地图编号
/// </summary>
public string MapCode { get; set; }
/// <summary>
/// 调用方式
/// </summary>
public string Invoke { get; set; }
}
}

@ -1,40 +0,0 @@
using Sln.Wcs.Common.Domain.Dto;
using Sln.Wcs.HikRoBotApi.Domain.Model.ZonePause;
using Sln.Wcs.HikRoBotApi.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Dto.ZonePause
{
/// <summary>
/// 区域暂停返回参数
/// </summary>
public class ZonePauseResultDto : ResultDto<HikRoBotStatusEnum, ZonePauseResultModel>
{
}
}

@ -1,100 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.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.HikRoBotApi.Enum
{
public enum HikRoBotStatusEnum
{
= 0,
= 1,
= 6,
= 99,
=100,
SDK=101,
/// <summary>
/// 上一组任务未下发
/// </summary>
Err_TaskNotStart = 102,
/// <summary>
/// 任务已结束
/// </summary>
Err_TaskFinished = 103,
/// <summary>
/// 任务找不到
/// </summary>
Err_TaskNotFound = 104,
/// <summary>
/// 任务当前无法变更
/// </summary>
Err_TaskModifyReject = 105,
/// <summary>
/// 任务类型不支持
/// </summary>
Err_TaskTypeNotSupport = 106,
/// <summary>
/// 机器人资源组编号与任务不匹配
/// </summary>
Err_RobotGroupsNotMatch = 107,
/// <summary>
/// 机器人编号与任务不匹配
/// </summary>
Err_RobotCodeNotMatch = 108,
/// <summary>
/// 任务路径参数有误
/// </summary>
Err_TargetRouteError = 109,
/// <summary>
/// 状态转换异常
/// </summary>
Err_StatusNotMatch = 110,
/// <summary>
/// 预设开机时间点小于当前时间点
/// </summary>
Err_TimeMachineRequired = 111,
/// <summary>
/// 数据格式验证失败/找不到区域
/// </summary>
Err_DataValidationFailed = 112,
/// <summary>
/// 载具或站点已存在任务
/// </summary>
Err_TaskFound = 113,
/// <summary>
/// 载具或站点已与其他对象建立绑定关系
/// </summary>
Err_Bound = 114,
/// <summary>
/// 请求重复
/// </summary>
Err_RequestDuplicate = 115,
/// <summary>
/// 请求版本不合法/任务不存在
/// </summary>
Err_InvalidVersion = 116,
}
}

@ -1,53 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Model.CancelTask
{
/// <summary>
/// 取消任务返回实体
/// </summary>
public class CancelTaskResultModel
{
/// <summary>
/// 返回码
/// </summary>
public string code { get; set; }
/// <summary>
/// 返回消息
/// </summary>
public string message { get; set; }
/// <summary>
/// 请求编号
/// </summary>
public string reqCode { get; set; }
public string errorCode { get; set; }
public bool success { get; set; }
}
}

@ -1,43 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Model.CarrierBind
{
/// <summary>
/// 载具绑定返回实体
/// </summary>
public class CarrierBindResultModel
{
/// <summary>
/// 自定义数据
/// </summary>
public string Extra { get; set; }
public string errorCode { get; set; }
public bool success { get; set; }
}
}

@ -1,39 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Model.CarrierLock
{
/// <summary>
/// 载具锁定返回实体
/// </summary>
public class CarrierLockResultModel
{
public string errorCode { get; set; }
public bool success { get; set; }
}
}

@ -1,43 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Model.CarrierUnbind
{
/// <summary>
/// 载具解绑返回实体
/// </summary>
public class CarrierUnbindResultModel
{
/// <summary>
/// 自定义数据
/// </summary>
public string Extra { get; set; }
public string errorCode { get; set; }
public bool success { get; set; }
}
}

@ -1,53 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Model.ContinueTask
{
/// <summary>
/// 任务继续返回实体
/// </summary>
public class ContinueTaskResultModel
{
/// <summary>
/// 返回码
/// </summary>
public string code { get; set; }
/// <summary>
/// 返回消息
/// </summary>
public string message { get; set; }
/// <summary>
/// 请求编号
/// </summary>
public string reqCode { get; set; }
public string errorCode { get; set; }
public bool success { get; set; }
}
}

@ -1,53 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Model.EquipmentNotify
{
/// <summary>
/// 设备通知返回实体
/// </summary>
public class EquipmentNotifyResultModel
{
/// <summary>
/// 机器人任务编号
/// </summary>
public string RobotTaskCode { get; set; }
/// <summary>
/// 下一个序号
/// </summary>
public int? NextSeq { get; set; }
/// <summary>
/// 自定义数据
/// </summary>
public string Extra { get; set; }
public string errorCode { get; set; }
public bool success { get; set; }
}
}

@ -1,48 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Model.GbCancelTask
{
/// <summary>
/// GB标准-任务取消返回实体
/// </summary>
public class GbCancelTaskResultModel
{
/// <summary>
/// 被取消的任务唯一标识
/// </summary>
public string RobotTaskCode { get; set; }
/// <summary>
/// 自定义扩展字段
/// </summary>
public object Extra { get; set; }
public string errorCode { get; set; }
public bool success { get; set; }
}
}

@ -1,53 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Model.GbContinueTask
{
/// <summary>
/// GB标准-任务继续执行返回实体
/// </summary>
public class GbContinueTaskResultModel
{
/// <summary>
/// 任务号
/// </summary>
public string RobotTaskCode { get; set; }
/// <summary>
/// 下一步骤序号
/// </summary>
public int? NextSeq { get; set; }
/// <summary>
/// 自定义扩展字段
/// </summary>
public object Extra { get; set; }
public string errorCode { get; set; }
public bool success { get; set; }
}
}

@ -1,51 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Model.GbTaskSubmit
{
/// <summary>
/// GB标准-任务下发返回实体
/// </summary>
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; }
}
}

@ -1,48 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Model.GenAgvSchedulingTask
{
/// <summary>
/// GB标准-生成任务单返回实体
/// </summary>
public class GenAgvSchedulingTaskResultModel
{
/// <summary>
/// 机器人任务编号
/// </summary>
public string RobotTaskCode { get; set; }
/// <summary>
/// 自定义数据
/// </summary>
public string Extra { get; set; }
public string errorCode { get; set; }
public bool success { get; set; }
}
}

@ -1,43 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Model.MatLabelBind
{
/// <summary>
/// 物料标签绑定返回实体
/// </summary>
public class MatLabelBindResultModel
{
/// <summary>
/// 自定义数据
/// </summary>
public string Extra { get; set; }
public string errorCode { get; set; }
public bool success { get; set; }
}
}

@ -1,39 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Model.MatLabelUnbind
{
/// <summary>
/// 物料标签解绑返回实体
/// </summary>
public class MatLabelUnbindResultModel
{
public string errorCode { get; set; }
public bool success { get; set; }
}
}

@ -1,48 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Model.PreTask
{
/// <summary>
/// 预任务返回实体
/// </summary>
public class PreTaskResultModel
{
/// <summary>
/// 机器人任务编号
/// </summary>
public string RobotTaskCode { get; set; }
/// <summary>
/// 自定义数据
/// </summary>
public string Extra { get; set; }
public string errorCode { get; set; }
public bool success { get; set; }
}
}

@ -1,93 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Model.QueryCarrier
{
/// <summary>
/// 查询载具状态返回实体
/// </summary>
public class QueryCarrierResultModel
{
/// <summary>
/// 载具编号
/// </summary>
public string CarrierCode { get; set; }
/// <summary>
/// 机器人任务编号
/// </summary>
public string RobotTaskCode { get; set; }
/// <summary>
/// 站点编号
/// </summary>
public string SiteCode { get; set; }
/// <summary>
/// 坐标X
/// </summary>
public double X { get; set; }
/// <summary>
/// 坐标Y
/// </summary>
public double Y { get; set; }
/// <summary>
/// 载具方向
/// </summary>
public int? CarrierDir { get; set; }
/// <summary>
/// 载具状态
/// </summary>
public string CarrierStatus { get; set; }
/// <summary>
/// 料箱编号
/// </summary>
public string BinCode { get; set; }
/// <summary>
/// 料箱名称
/// </summary>
public string BinName { get; set; }
/// <summary>
/// 机器人编号
/// </summary>
public string RobotCode { get; set; }
/// <summary>
/// 自定义数据
/// </summary>
public string Extra { get; set; }
public string errorCode { get; set; }
public bool success { get; set; }
}
}

@ -1,109 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Model.QueryRobot
{
/// <summary>
/// 查询机器人状态返回实体
/// </summary>
public class QueryRobotResultModel
{
/// <summary>
/// 机器人编号
/// </summary>
public string SingleRobotCode { get; set; }
/// <summary>
/// 机器人方向
/// </summary>
public int RobotDir { get; set; }
/// <summary>
/// 机器人IP
/// </summary>
public string RobotIp { get; set; }
/// <summary>
/// 电池电量
/// </summary>
public int Battery { get; set; }
/// <summary>
/// 坐标X
/// </summary>
public double X { get; set; }
/// <summary>
/// 坐标Y
/// </summary>
public double Y { get; set; }
/// <summary>
/// 速度
/// </summary>
public int Speed { get; set; }
/// <summary>
/// 机器人状态
/// </summary>
public string RobotStatus { get; set; }
/// <summary>
/// 载具编号
/// </summary>
public string CarrierCode { get; set; }
/// <summary>
/// 警告列表
/// </summary>
public List<Waring> Warnings { get; set; }
/// <summary>
/// 自定义数据
/// </summary>
public string Extra { get; set; }
public string errorCode { get; set; }
public bool success { get; set; }
}
/// <summary>
/// 警告信息
/// </summary>
public class Waring
{
/// <summary>
/// 警告码
/// </summary>
public string Code { get; set; }
/// <summary>
/// 警告描述
/// </summary>
public string Desc { get; set; }
}
}

@ -1,120 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Model.QueryTask
{
/// <summary>
/// 查询任务状态返回实体
/// </summary>
public class QueryTaskResultModel
{
/// <summary>
/// 机器人任务编号
/// </summary>
public string RobotTaskCode { get; set; }
/// <summary>
/// 任务类型
/// </summary>
public string TaskType { get; set; }
/// <summary>
/// 任务状态
/// </summary>
public string TaskStatus { get; set; }
/// <summary>
/// 初始优先级
/// </summary>
public int? InitPriority { get; set; }
/// <summary>
/// 截止时间
/// </summary>
public string Deadline { get; set; }
/// <summary>
/// 目标路径列表
/// </summary>
public List<TargetRoute> TargetRoute { get; set; }
/// <summary>
/// 执行机器人编号
/// </summary>
public string SingleRobotCode { get; set; }
/// <summary>
/// 当前序号
/// </summary>
public int? CurrentSeq { get; set; }
/// <summary>
/// 警告信息
/// </summary>
public Waring Waring { get; set; }
/// <summary>
/// 自定义数据
/// </summary>
public string Extra { get; set; }
public string errorCode { get; set; }
public bool success { get; set; }
}
/// <summary>
/// 目标路径
/// </summary>
public class TargetRoute
{
/// <summary>
/// 类型
/// </summary>
public string Type { get; set; }
/// <summary>
/// 编号
/// </summary>
public string Code { get; set; }
}
/// <summary>
/// 警告信息
/// </summary>
public class Waring
{
/// <summary>
/// 警告码
/// </summary>
public string Code { get; set; }
/// <summary>
/// 警告描述
/// </summary>
public string Desc { get; set; }
}
}

@ -1,43 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Model.SiteBind
{
/// <summary>
/// 站点绑定返回实体
/// </summary>
public class SiteBindResultModel
{
/// <summary>
/// 自定义数据
/// </summary>
public string Extra { get; set; }
public string errorCode { get; set; }
public bool success { get; set; }
}
}

@ -1,39 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Model.SiteLock
{
/// <summary>
/// 站点锁定返回实体
/// </summary>
public class SiteLockResultModel
{
public string errorCode { get; set; }
public bool success { get; set; }
}
}

@ -1,39 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Model.TaskGroup
{
/// <summary>
/// 任务组返回实体
/// </summary>
public class TaskGroupResultModel
{
public string errorCode { get; set; }
public bool success { get; set; }
}
}

@ -1,48 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Model.TaskPriority
{
/// <summary>
/// 任务优先级返回实体
/// </summary>
public class TaskPriorityResultModel
{
/// <summary>
/// 机器人任务编号
/// </summary>
public string RobotTaskCode { get; set; }
/// <summary>
/// 自定义数据
/// </summary>
public string Extra { get; set; }
public string errorCode { get; set; }
public bool success { get; set; }
}
}

@ -1,48 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Model.ZoneBanish
{
/// <summary>
/// 区域驱逐返回实体
/// </summary>
public class ZoneBanishResultModel
{
/// <summary>
/// 驱逐编号
/// </summary>
public string BanishCode { get; set; }
/// <summary>
/// 自定义数据
/// </summary>
public string Extra { get; set; }
public string errorCode { get; set; }
public bool success { get; set; }
}
}

@ -1,43 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Model.ZoneBlockade
{
/// <summary>
/// 区域封锁返回实体
/// </summary>
public class ZoneBlockadeResultModel
{
/// <summary>
/// 自定义数据
/// </summary>
public string Extra { get; set; }
public string errorCode { get; set; }
public bool success { get; set; }
}
}

@ -1,53 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Model.ZoneHoming
{
/// <summary>
/// 区域回巢返回实体
/// </summary>
public class ZoneHomingResultModel
{
/// <summary>
/// 回巢编号
/// </summary>
public string HomingCode { get; set; }
/// <summary>
/// 机器人数量
/// </summary>
public int RobotCount { get; set; }
/// <summary>
/// 自定义数据
/// </summary>
public string Extra { get; set; }
public string errorCode { get; set; }
public bool success { get; set; }
}
}

@ -1,43 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.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.HikRoBotApi.Domain.Model.ZonePause
{
/// <summary>
/// 区域暂停返回实体
/// </summary>
public class ZonePauseResultModel
{
/// <summary>
/// 自定义数据
/// </summary>
public string Extra { get; set; }
public string errorCode { get; set; }
public bool success { get; set; }
}
}

@ -1,205 +0,0 @@
using Sln.Wcs.HikRoBotApi.Domain.Dto.CancelTask;
using Sln.Wcs.HikRoBotApi.Domain.Dto.ContinueTask;
using Sln.Wcs.HikRoBotApi.Domain.Dto.GbCancelTask;
using Sln.Wcs.HikRoBotApi.Domain.Dto.GbContinueTask;
using Sln.Wcs.HikRoBotApi.Domain.Dto.GbTaskSubmit;
using Sln.Wcs.HikRoBotApi.Domain.Dto.GenAgvSchedulingTask;
using Sln.Wcs.HikRoBotApi.Domain.Dto.TaskGroup;
using Sln.Wcs.HikRoBotApi.Domain.Dto.TaskPriority;
using Sln.Wcs.HikRoBotApi.Domain.Dto.ZonePause;
using Sln.Wcs.HikRoBotApi.Domain.Dto.ZoneHoming;
using Sln.Wcs.HikRoBotApi.Domain.Dto.ZoneBanish;
using Sln.Wcs.HikRoBotApi.Domain.Dto.ZoneBlockade;
using Sln.Wcs.HikRoBotApi.Domain.Dto.CarrierBind;
using Sln.Wcs.HikRoBotApi.Domain.Dto.CarrierUnbind;
using Sln.Wcs.HikRoBotApi.Domain.Dto.SiteBind;
using Sln.Wcs.HikRoBotApi.Domain.Dto.CarrierLock;
using Sln.Wcs.HikRoBotApi.Domain.Dto.SiteLock;
using Sln.Wcs.HikRoBotApi.Domain.Dto.PreTask;
using Sln.Wcs.HikRoBotApi.Domain.Dto.QueryTask;
using Sln.Wcs.HikRoBotApi.Domain.Dto.QueryRobot;
using Sln.Wcs.HikRoBotApi.Domain.Dto.QueryCarrier;
using Sln.Wcs.HikRoBotApi.Domain.Dto.MatLabelBind;
using Sln.Wcs.HikRoBotApi.Domain.Dto.MatLabelUnbind;
using Sln.Wcs.HikRoBotApi.Domain.Dto.EquipmentNotify;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.Service
* ad6ee481-fa9c-4be2-a3b2-6741ddff58f7
*
* WenJY
*
* 2026-02-25 15:15:10
* V1.0.0
*
*
*--------------------------------------------------------------------
*
*
*
*
* V1.0.0
*--------------------------------------------------------------------*/
#endregion << 版 本 注 释 >>
namespace Sln.Wcs.HikRoBotApi.Service
{
public interface IHikRoBotService
{
/// <summary>
/// GB标准-任务下发
/// </summary>
GbTaskSubmitResultDto GbTaskSubmit(GbTaskSubmitDto gbTaskSubmit);
/// <summary>
/// GB标准-任务继续执行
/// </summary>
GbContinueTaskResultDto GbContinueTask(GbContinueTaskDto gbContinueTask);
/// <summary>
/// GB标准-任务取消
/// </summary>
GbCancelTaskResultDto GbCancelTask(GbCancelTaskDto gbCancelTask);
/// <summary>
/// 任务组
/// </summary>
/// <param name="taskGroup"></param>
/// <returns></returns>
TaskGroupResultDto TaskGroup(TaskGroupDto taskGroup);
/// <summary>
/// 设置任务优先级
/// </summary>
/// <param name="taskPriority"></param>
/// <returns></returns>
TaskPriorityResultDto SetTaskPriority(TaskPriorityDto taskPriority);
/// <summary>
/// 区域暂停
/// </summary>
/// <param name="zonePause"></param>
/// <returns></returns>
ZonePauseResultDto ZonePause(ZonePauseDto zonePause);
/// <summary>
/// 区域回巢
/// </summary>
/// <param name="zoneHoming"></param>
/// <returns></returns>
ZoneHomingResultDto ZoneHoming(ZoneHomingDto zoneHoming);
/// <summary>
/// 区域驱逐
/// </summary>
/// <param name="zoneBanish"></param>
/// <returns></returns>
ZoneBanishResultDto ZoneBanish(ZoneBanishDto zoneBanish);
/// <summary>
/// 区域封锁
/// </summary>
/// <param name="zoneBlockade"></param>
/// <returns></returns>
ZoneBlockadeResultDto ZoneBlockade(ZoneBlockadeDto zoneBlockade);
/// <summary>
/// 载具绑定
/// </summary>
/// <param name="carrierBind"></param>
/// <returns></returns>
CarrierBindResultDto CarrierBind(CarrierBindDto carrierBind);
/// <summary>
/// 载具解绑
/// </summary>
/// <param name="carrierUnbind"></param>
/// <returns></returns>
CarrierUnbindResultDto CarrierUnbind(CarrierUnbindDto carrierUnbind);
/// <summary>
/// 站点绑定
/// </summary>
/// <param name="siteBind"></param>
/// <returns></returns>
SiteBindResultDto SiteBind(SiteBindDto siteBind);
/// <summary>
/// 载具锁定
/// </summary>
/// <param name="carrierLock"></param>
/// <returns></returns>
CarrierLockResultDto CarrierLock(CarrierLockDto carrierLock);
/// <summary>
/// 站点锁定
/// </summary>
/// <param name="siteLock"></param>
/// <returns></returns>
SiteLockResultDto SiteLock(SiteLockDto siteLock);
/// <summary>
/// 预任务
/// </summary>
/// <param name="preTask"></param>
/// <returns></returns>
PreTaskResultDto PreTask(PreTaskDto preTask);
/// <summary>
/// 查询任务状态
/// </summary>
/// <param name="queryTask"></param>
/// <returns></returns>
QueryTaskResultDto QueryTaskStatus(QueryTaskDto queryTask);
/// <summary>
/// 查询机器人状态
/// </summary>
/// <param name="queryRobot"></param>
/// <returns></returns>
QueryRobotResultDto QueryRobotStatus(QueryRobotDto queryRobot);
/// <summary>
/// 查询载具状态
/// </summary>
/// <param name="queryCarrier"></param>
/// <returns></returns>
QueryCarrierResultDto QueryCarrierStatus(QueryCarrierDto queryCarrier);
/// <summary>
/// 物料标签绑定
/// </summary>
/// <param name="matLabelBind"></param>
/// <returns></returns>
MatLabelBindResultDto MatLabelBind(MatLabelBindDto matLabelBind);
/// <summary>
/// 物料标签解绑
/// </summary>
/// <param name="matLabelUnbind"></param>
/// <returns></returns>
MatLabelUnbindResultDto MatLabelUnbind(MatLabelUnbindDto matLabelUnbind);
/// <summary>
/// 设备通知
/// </summary>
/// <param name="equipmentNotify"></param>
/// <returns></returns>
EquipmentNotifyResultDto EquipmentNotify(EquipmentNotifyDto equipmentNotify);
/// <summary>
/// 设备通知(国标)
/// </summary>
/// <param name="equipmentNotify"></param>
/// <returns></returns>
EquipmentNotifyResultDto EquipmentNotifyGbt(EquipmentNotifyDto equipmentNotify);
}
}

@ -1,829 +0,0 @@
using Sln.Wcs.HikRoBotApi.Domain.Dto.GbCancelTask;
using Sln.Wcs.HikRoBotApi.Domain.Dto.GbContinueTask;
using Sln.Wcs.HikRoBotApi.Domain.Dto.GbTaskSubmit;
using Sln.Wcs.HikRoBotApi.Domain.Model.CarrierLock;
using Sln.Wcs.HikRoBotApi.Domain.Model.MatLabelUnbind;
using Sln.Wcs.HikRoBotApi.Domain.Model.SiteLock;
using Sln.Wcs.HikRoBotApi.Domain.Model.TaskGroup;
using Sln.Wcs.HikRoBotApi.Enum;
using Sln.Wcs.HikRoBotApi.Util;
using Sln.Wcs.HikRoBotSdk;
using TaskGroupResultDto = Sln.Wcs.HikRoBotApi.Domain.Dto.TaskGroup.TaskGroupResultDto;
using TaskPriorityResultDto = Sln.Wcs.HikRoBotApi.Domain.Dto.TaskPriority.TaskPriorityResultDto;
using ZonePauseResultDto = Sln.Wcs.HikRoBotApi.Domain.Dto.ZonePause.ZonePauseResultDto;
using ZoneHomingResultDto = Sln.Wcs.HikRoBotApi.Domain.Dto.ZoneHoming.ZoneHomingResultDto;
using ZoneBanishResultDto = Sln.Wcs.HikRoBotApi.Domain.Dto.ZoneBanish.ZoneBanishResultDto;
using ZoneBlockadeResultDto = Sln.Wcs.HikRoBotApi.Domain.Dto.ZoneBlockade.ZoneBlockadeResultDto;
using CarrierBindResultDto = Sln.Wcs.HikRoBotApi.Domain.Dto.CarrierBind.CarrierBindResultDto;
using CarrierUnbindResultDto = Sln.Wcs.HikRoBotApi.Domain.Dto.CarrierUnbind.CarrierUnbindResultDto;
using SiteBindResultDto = Sln.Wcs.HikRoBotApi.Domain.Dto.SiteBind.SiteBindResultDto;
using CarrierLockResultDto = Sln.Wcs.HikRoBotApi.Domain.Dto.CarrierLock.CarrierLockResultDto;
using SiteLockResultDto = Sln.Wcs.HikRoBotApi.Domain.Dto.SiteLock.SiteLockResultDto;
using PreTaskResultDto = Sln.Wcs.HikRoBotApi.Domain.Dto.PreTask.PreTaskResultDto;
using QueryTaskResultDto = Sln.Wcs.HikRoBotApi.Domain.Dto.QueryTask.QueryTaskResultDto;
using QueryRobotResultDto = Sln.Wcs.HikRoBotApi.Domain.Dto.QueryRobot.QueryRobotResultDto;
using QueryCarrierResultDto = Sln.Wcs.HikRoBotApi.Domain.Dto.QueryCarrier.QueryCarrierResultDto;
using MatLabelBindResultDto = Sln.Wcs.HikRoBotApi.Domain.Dto.MatLabelBind.MatLabelBindResultDto;
using MatLabelUnbindResultDto = Sln.Wcs.HikRoBotApi.Domain.Dto.MatLabelUnbind.MatLabelUnbindResultDto;
using EquipmentNotifyResultDto = Sln.Wcs.HikRoBotApi.Domain.Dto.EquipmentNotify.EquipmentNotifyResultDto;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.Service.Impl
* 05713c1e-50f3-48cf-8ac8-0dfd1f768856
*
* WenJY
*
* 2026-02-25 15:15:34
* V1.0.0
*
*
*--------------------------------------------------------------------
*
*
*
*
* V1.0.0
*--------------------------------------------------------------------*/
#endregion << 版 本 注 释 >>
namespace Sln.Wcs.HikRoBotApi.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;
}
/// <summary>
/// 通用执行方法封装空值检查、SDK 调用、结果码解析、异常处理
/// </summary>
private TResult Execute<TResult>(
Func<object> sdkCall,
Func<dynamic, HikRoBotStatusEnum, TResult> mapSuccess,
Func<string, TResult> 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<TResult>(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<GbContinueTaskResultDto>
);
}
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<GbCancelTaskResultDto>
);
}
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<GbTaskSubmitResultDto>
);
}
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<TaskGroupResultDto>
);
}
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<TaskPriorityResultDto>
);
}
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<ZonePauseResultDto>
);
}
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<ZoneHomingResultDto>
);
}
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<ZoneBanishResultDto>
);
}
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<ZoneBlockadeResultDto>
);
}
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<CarrierBindResultDto>
);
}
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<CarrierUnbindResultDto>
);
}
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<SiteBindResultDto>
);
}
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<CarrierLockResultDto>
);
}
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<SiteLockResultDto>
);
}
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<PreTaskResultDto>
);
}
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<dynamic>)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<QueryTaskResultDto>
);
}
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<dynamic>)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<QueryRobotResultDto>
);
}
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<QueryCarrierResultDto>
);
}
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<MatLabelBindResultDto>
);
}
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<MatLabelUnbindResultDto>
);
}
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<EquipmentNotifyResultDto>
);
}
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<EquipmentNotifyResultDto>
);
}
}
}

@ -1,14 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Sln.Wcs.Common\Sln.Wcs.Common.csproj" />
<ProjectReference Include="..\Sln.Wcs.HikRoBotSdk\Sln.Wcs.HikRoBotSdk.csproj" />
</ItemGroup>
</Project>

@ -1,77 +0,0 @@
using Sln.Wcs.HikRoBotApi.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* Sln.Wcs.HikRoBotApi.Util
* 7cea7d00-c417-480f-b2af-ff47d07e25d8
*
* WenJY
*
* 2026-02-25 15:11:14
* V1.0.0
*
*
*--------------------------------------------------------------------
*
*
*
*
* V1.0.0
*--------------------------------------------------------------------*/
#endregion << 版 本 注 释 >>
namespace Sln.Wcs.HikRoBotApi.Util
{
public class ApiResultCodeUtil
{
/// <summary>
///
/// </summary>
/// <param name="respCode"></param>
/// <param name="respMsg"></param>
/// <param name="hikRoBotStatus"></param>
/// <returns></returns>
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;
}
}
}

@ -1,71 +0,0 @@
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* Mr.Wen's MacBook Pro
* Sln.Wcs.HoistApi.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.HoistApi.Domain.Dto.GetHoistStatus;
public class GetHoistStatusDto
{
/// <summary>
/// 提升机编号
/// </summary>
public string hoistCode { get; set; }
/// <summary>
/// 反馈任务执行指令:是否可以下发任务
/// </summary>
public string canDispatchTask { get; set; }
/// <summary>
/// 当前楼层
/// </summary>
public string currentFloor { get; set; }
/// <summary>
/// 接驳位状态1~5 楼)
/// 索引 0 → 1楼索引 1 → 2楼... 索引 4 → 5楼
/// </summary>
public List<string> transferStationStatus { get; set; }
/// <summary>
/// 读写器触发状态1~5 楼)
/// 索引 0 → 1楼索引 1 → 2楼... 索引 4 → 5楼
/// </summary>
public List<string> readerTriggerStatus { get; set; }
/// <summary>
/// 自动状态true = 自动模式false = 手动模式
/// </summary>
public string isAutoMode { get; set; }
/// <summary>
/// 屏蔽调度true = 屏蔽中false = 未屏蔽
/// </summary>
public string isDispatchBlocked { get; set; }
/// <summary>
/// 状态指示(详见 <see cref="IndicatorState"/>
/// </summary>
public string stateIndicator { get; set; }
}

@ -1,36 +0,0 @@
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* Mr.Wen's MacBook Pro
* Sln.Wcs.HoistApi.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.HoistApi.Domain.Enum;
using Sln.Wcs.HoistApi.Domain.Model.GetHoistStatus;
using Sln.Wcs.HoistApi.Domain.Model.HoistControl;
namespace Sln.Wcs.HoistApi.Domain.Dto.GetHoistStatus;
public class GetHoistStatusResultDto:ResultDto<HoistStatusEnum,GetHoistStatusResultModel>
{
}

@ -1,41 +0,0 @@
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* Mr.Wen's MacBook Pro
* Sln.Wcs.HoistApi.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.HoistApi.Domain.Enum;
namespace Sln.Wcs.HoistApi.Domain.Dto.HoistControl;
public class HoistControlDto
{
/// <summary>
/// 提升机编号
/// </summary>
public string hoistCode { get; set; }
/// <summary>
/// 动作
/// </summary>
public ControlAction action { get; set; }
}

@ -1,35 +0,0 @@
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* Mr.Wen's MacBook Pro
* Sln.Wcs.HoistApi.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.HoistApi.Domain.Enum;
using Sln.Wcs.HoistApi.Domain.Model.HoistControl;
namespace Sln.Wcs.HoistApi.Domain.Dto.HoistControl;
public class HoistControlResultDto:ResultDto<HoistStatusEnum,HoistControlResultModel>
{
}

@ -1,49 +0,0 @@
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* Mr.Wen's MacBook Pro
* Sln.Wcs.HoistApi.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.HoistApi.Domain.Dto.HoistTaskExecutor;
public class HoistTaskExeDto
{
/// <summary>
/// 提升机编号
/// </summary>
public string hoistCode { get; set; }
/// <summary>
/// 任务编号
/// </summary>
public string taskCode { get; set; }
/// <summary>
/// 起点
/// </summary>
public int startPoint { get; set; }
/// <summary>
/// 终点
/// </summary>
public int endPoint { get; set; }
}

@ -1,35 +0,0 @@
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* Mr.Wen's MacBook Pro
* Sln.Wcs.HoistApi.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.HoistApi.Domain.Enum;
using Sln.Wcs.HoistApi.Domain.Model.HoistTaskExecutor;
namespace Sln.Wcs.HoistApi.Domain.Dto.HoistTaskExecutor;
public class HoistTaskExeResultDto:ResultDto<HoistStatusEnum,HoistTaskExeResultModel>
{
}

@ -1,29 +0,0 @@
namespace Sln.Wcs.HoistApi.Domain.Enum;
public enum ControlAction
{
/// <summary>
/// 移动
/// </summary>
Move,
/// <summary>
/// 开启
/// </summary>
Start,
/// <summary>
/// 停止
/// </summary>
Stop,
/// <summary>
/// 复位
/// </summary>
Reset,
/// <summary>
/// 校准
/// </summary>
Calibrate
}

@ -1,11 +0,0 @@
namespace Sln.Wcs.HoistApi.Domain.Enum;
public enum HoistStatusEnum
{
= 0,
= 1,
= 6,
= 99,
=100,
SDK=101,
}

@ -1,81 +0,0 @@
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* Mr.Wen's MacBook Pro
* Sln.Wcs.HoistApi.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.HoistApi.Domain.Model.GetHoistStatus;
public class GetHoistStatusResultModel
{
/// <summary>
/// 返回码
/// </summary>
public string code { get; set; }
/// <summary>
/// 返回消息
/// </summary>
public string message { get; set; }
/// <summary>
/// 提升机编号
/// </summary>
public string hoistCode { get; set; }
/// <summary>
/// 反馈任务执行指令:是否可以下发任务
/// </summary>
public int canDispatchTask { get; set; }
/// <summary>
/// 当前楼层
/// </summary>
public int currentFloor { get; set; }
/// <summary>
/// 接驳位状态1~5 楼)
/// 索引 0 → 1楼索引 1 → 2楼... 索引 4 → 5楼
/// </summary>
public int[] transferStationStatus { get; set; } = new int[5];
/// <summary>
/// 读写器触发状态1~5 楼)
/// 索引 0 → 1楼索引 1 → 2楼... 索引 4 → 5楼
/// </summary>
public int[] readerTriggerStatus { get; set; } = new int[5];
/// <summary>
/// 自动状态true = 自动模式false = 手动模式
/// </summary>
public int isAutoMode { get; set; }
/// <summary>
/// 屏蔽调度true = 屏蔽中false = 未屏蔽
/// </summary>
public int isDispatchBlocked { get; set; }
/// <summary>
/// 状态指示(详见 <see cref="IndicatorState"/>
/// </summary>
public int stateIndicator { get; set; }
}

@ -1,44 +0,0 @@
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* Mr.Wen's MacBook Pro
* Sln.Wcs.HoistApi.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.HoistApi.Domain.Model.HoistControl;
public class HoistControlResultModel
{
/// <summary>
/// 返回码
/// </summary>
public string code { get; set; }
/// <summary>
/// 返回消息
/// </summary>
public string message { get; set; }
/// <summary>
/// 任务编号
/// </summary>
public string taskCode { get; set; }
}

@ -1,44 +0,0 @@
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* Mr.Wen's MacBook Pro
* Sln.Wcs.HoistApi.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.HoistApi.Domain.Model.HoistTaskExecutor;
public class HoistTaskExeResultModel
{
/// <summary>
/// 返回码
/// </summary>
public string code { get; set; }
/// <summary>
/// 返回消息
/// </summary>
public string message { get; set; }
/// <summary>
/// 任务编号
/// </summary>
public string taskCode { get; set; }
}

@ -1,55 +0,0 @@
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* Mr.Wen's MacBook Pro
* Sln.Wcs.HoistApi.Service
* 6A17F59C-C8AD-4A71-BF65-59412634AF88
*
* WenJY
*
* 2026-05-06 14:23:32
* V1.0.0
*
*
*--------------------------------------------------------------------
*
*
*
*
* V1.0.0
*--------------------------------------------------------------------*/
#endregion << 版 本 注 释 >>
using Sln.Wcs.HoistApi.Domain.Dto.GetHoistStatus;
using Sln.Wcs.HoistApi.Domain.Dto.HoistControl;
using Sln.Wcs.HoistApi.Domain.Dto.HoistTaskExecutor;
namespace Sln.Wcs.HoistApi.Service;
public interface IHoistApiService
{
/// <summary>
/// 提升机控制
/// MOVE_TO, STOP, EMERGENCY_STOP, RESET, CALIBRATE
/// </summary>
/// <param name="hoistControlDto"></param>
/// <returns></returns>
HoistControlResultDto HoistControl(HoistControlDto hoistControlDto);
/// <summary>
/// 提升机任务执行
/// </summary>
/// <param name="hoistTaskExeDto"></param>
/// <returns></returns>
HoistTaskExeResultDto HoistTaskExecutor(HoistTaskExeDto hoistTaskExeDto);
/// <summary>
/// 获取提升机状态
/// </summary>
/// <param name="hoistStatusDto"></param>
/// <returns></returns>
GetHoistStatusResultDto GetHoistStatus(GetHoistStatusDto hoistStatusDto);
}

@ -1,195 +0,0 @@
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* Mr.Wen's MacBook Pro
* Sln.Wcs.HoistApi.Service.Impl
* E44EB57C-A5C0-49F3-9C90-602B14CF613B
*
* WenJY
*
* 2026-05-06 14:23:55
* V1.0.0
*
*
*--------------------------------------------------------------------
*
*
*
*
* V1.0.0
*--------------------------------------------------------------------*/
#endregion << 版 本 注 释 >>
using Sln.Wcs.HoistApi.Domain.Dto.GetHoistStatus;
using Sln.Wcs.HoistApi.Domain.Dto.HoistControl;
using Sln.Wcs.HoistApi.Domain.Dto.HoistTaskExecutor;
using Sln.Wcs.HoistApi.Domain.Enum;
using Sln.Wcs.HoistApi.Domain.Model.GetHoistStatus;
using Sln.Wcs.HoistApi.Domain.Model.HoistControl;
using Sln.Wcs.HoistApi.Domain.Model.HoistTaskExecutor;
using Sln.Wcs.HoistApi.Util;
using Sln.Wcs.HoistSdk;
namespace Sln.Wcs.HoistApi.Service.Impl;
public class HoistApiService:IHoistApiService
{
private readonly IHoistSdk hoistSdk;
private readonly ApiResultCodeUtil codeUtil;
public HoistApiService(IHoistSdk hoistSdk, ApiResultCodeUtil codeUtil)
{
this.hoistSdk = hoistSdk;
this.codeUtil = codeUtil;
}
/// <summary>
/// 提升机控制
/// </summary>
/// <param name="hoistControlDto"></param>
/// <returns></returns>
/// <exception cref="NotImplementedException"></exception>
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,
};
}
}
/// <summary>
/// 提升机任务执行
/// </summary>
/// <param name="hoistTaskExeDto"></param>
/// <returns></returns>
/// <exception cref="NotImplementedException"></exception>
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,
};
}
}
/// <summary>
/// 获取提升机状态
/// </summary>
/// <param name="hoistStatusDto"></param>
/// <returns></returns>
/// <exception cref="ArgumentException"></exception>
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,
};
}
}
}

@ -1,14 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Sln.Wcs.Common\Sln.Wcs.Common.csproj" />
<ProjectReference Include="..\Sln.Wcs.HoistSdk\Sln.Wcs.HoistSdk.csproj" />
</ItemGroup>
</Project>

@ -1,73 +0,0 @@
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* Mr.Wen's MacBook Pro
* Sln.Wcs.HoistApi.Util
* 50A6C50A-87A8-4CC1-98DF-5C2943AB8ED5
*
* WenJY
*
* 2026-05-06 14:53:36
* V1.0.0
*
*
*--------------------------------------------------------------------
*
*
*
*
* V1.0.0
*--------------------------------------------------------------------*/
#endregion << 版 本 注 释 >>
using Sln.Wcs.HoistApi.Domain.Enum;
namespace Sln.Wcs.HoistApi.Util;
public class ApiResultCodeUtil
{
/// <summary>
///
/// </summary>
/// <param name="respCode"></param>
/// <param name="respMsg"></param>
/// <param name="hikRoBotStatus"></param>
/// <returns></returns>
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;
}
}

@ -9,8 +9,8 @@
<ItemGroup>
<ProjectReference Include="..\Sln.Wcs.Model\Sln.Wcs.Model.csproj" />
<ProjectReference Include="..\Sln.Wcs.Repository\Sln.Wcs.Repository.csproj" />
<ProjectReference Include="..\Sln.Wcs.HikRoBotApi\Sln.Wcs.HikRoBotApi.csproj" />
<ProjectReference Include="..\Sln.Wcs.HoistApi\Sln.Wcs.HoistApi.csproj" />
<ProjectReference Include="..\Sln.Wcs.HikRoBotAdapter\Sln.Wcs.HikRoBotAdapter.csproj" />
<ProjectReference Include="..\Sln.Wcs.HoistAdapter\Sln.Wcs.HoistAdapter.csproj" />
</ItemGroup>
</Project>

@ -8,7 +8,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sln.Wcs.Common", "Sln.Wcs.C
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sln.Wcs.HikRoBotSdk", "Sln.Wcs.HikRoBotSdk\Sln.Wcs.HikRoBotSdk.csproj", "{F2956A97-69F4-4073-B4C6-72CB7B945565}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sln.Wcs.HikRoBotApi", "Sln.Wcs.HikRoBotApi\Sln.Wcs.HikRoBotApi.csproj", "{9E3193CA-590C-4965-B2EF-02C2AE252095}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sln.Wcs.HikRoBotAdapter", "Sln.Wcs.HikRoBotAdapter\Sln.Wcs.HikRoBotAdapter.csproj", "{9E3193CA-590C-4965-B2EF-02C2AE252095}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sln.Wcs.Model", "Sln.Wcs.Model\Sln.Wcs.Model.csproj", "{18437437-F83E-4A3E-9759-8AF313C47D77}"
EndProject
@ -22,7 +22,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sln.Wcs.Cache", "Sln.Wcs.Ca
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sln.Wcs.HoistSdk", "Sln.Wcs.HoistSdk\Sln.Wcs.HoistSdk.csproj", "{535F03DD-0A8C-45D6-A773-2C1E808B0CB4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sln.Wcs.HoistApi", "Sln.Wcs.HoistApi\Sln.Wcs.HoistApi.csproj", "{3839B3AA-D893-46ED-8230-4B22C071CC00}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sln.Wcs.HoistAdapter", "Sln.Wcs.HoistAdapter\Sln.Wcs.HoistAdapter.csproj", "{3839B3AA-D893-46ED-8230-4B22C071CC00}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sln.Wcs.Business", "Sln.Wcs.Business\Sln.Wcs.Business.csproj", "{BC972937-1470-4B74-85F0-90F6162ADA27}"
EndProject

@ -5,17 +5,17 @@ using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using NeoSmart.Caching.Sqlite;
using Sln.Wcs.HikRoBotApi.Domain.Dto.GbTaskSubmit;
using Sln.Wcs.HikRoBotApi.Domain.Dto.GenAgvSchedulingTask;
using Sln.Wcs.HikRoBotApi.Service;
using Sln.Wcs.HikRoBotApi.Service.Impl;
using Sln.Wcs.HikRoBotAdapter.Domain.Dto.GbTaskSubmit;
using Sln.Wcs.HikRoBotAdapter.Domain.Dto.GenAgvSchedulingTask;
using Sln.Wcs.HikRoBotAdapter.Service;
using Sln.Wcs.HikRoBotAdapter.Service.Impl;
using Sln.Wcs.Repository;
using Sln.Wcs.Serilog;
using Sln.Wcs.Plc;
using Sln.Wcs.Strategy;
using ZiggyCreatures.Caching.Fusion;
using ZiggyCreatures.Caching.Fusion.Serialization.NewtonsoftJson;
using TargetRoute = Sln.Wcs.HikRoBotApi.Domain.Dto.GbTaskSubmit.TargetRoute;
using TargetRoute = Sln.Wcs.HikRoBotAdapter.Domain.Dto.GbTaskSubmit.TargetRoute;
namespace Sln.Wcs
{
@ -67,9 +67,9 @@ namespace Sln.Wcs
Assembly.LoadFrom(Path.Combine(basePath, "Sln.Wcs.Common.dll")),
Assembly.LoadFrom(Path.Combine(basePath, "Sln.Wcs.Cache.dll")),
Assembly.LoadFrom(Path.Combine(basePath, "Sln.Wcs.Repository.dll")),
Assembly.LoadFrom(Path.Combine(basePath, "Sln.Wcs.HikRoBotApi.dll")),
Assembly.LoadFrom(Path.Combine(basePath, "Sln.Wcs.HikRoBotAdapter.dll")),
Assembly.LoadFrom(Path.Combine(basePath, "Sln.Wcs.HikRoBotSdk.dll")),
Assembly.LoadFrom(Path.Combine(basePath, "Sln.Wcs.HoistApi.dll")),
Assembly.LoadFrom(Path.Combine(basePath, "Sln.Wcs.HoistAdapter.dll")),
Assembly.LoadFrom(Path.Combine(basePath, "Sln.Wcs.HoistSdk.dll")),
Assembly.LoadFrom(Path.Combine(basePath, "Sln.Wcs.Plc.dll")),
Assembly.LoadFrom(Path.Combine(basePath, "Sln.Wcs.Business.dll")),

@ -28,9 +28,9 @@
<ItemGroup>
<ProjectReference Include="..\Sln.Wcs.Business\Sln.Wcs.Business.csproj" />
<ProjectReference Include="..\Sln.Wcs.Cache\Sln.Wcs.Cache.csproj" />
<ProjectReference Include="..\Sln.Wcs.HikRoBotApi\Sln.Wcs.HikRoBotApi.csproj" />
<ProjectReference Include="..\Sln.Wcs.HikRoBotAdapter\Sln.Wcs.HikRoBotAdapter.csproj" />
<ProjectReference Include="..\Sln.Wcs.HikRoBotSdk\Sln.Wcs.HikRoBotSdk.csproj" />
<ProjectReference Include="..\Sln.Wcs.HoistApi\Sln.Wcs.HoistApi.csproj" />
<ProjectReference Include="..\Sln.Wcs.HoistAdapter\Sln.Wcs.HoistAdapter.csproj" />
<ProjectReference Include="..\Sln.Wcs.HoistSdk\Sln.Wcs.HoistSdk.csproj" />
<ProjectReference Include="..\Sln.Wcs.Plc\Sln.Wcs.Plc.csproj" />
<ProjectReference Include="..\Sln.Wcs.Repository\Sln.Wcs.Repository.csproj" />

Loading…
Cancel
Save