using System.Linq; using HH.WCS.Mobox3.AnGang.ServiceCore; using HH.WCS.Mobox3.AnGang.Devices; using HH.WCS.Mobox3.AnGang.Dispatch; using HH.WCS.Mobox3.AnGang.config; using HH.WCS.Mobox3.AnGang.Helper; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Web.Http; using static Opc.Ua.ContentFilter; using System.Threading.Tasks; using HH.WCS.Mobox3.AnGang.Models; using HH.WCS.Mobox3.AnGang.Services; using static HH.WCS.Mobox3.AnGang.Dtos.Request.AgvRequest; using static HH.WCS.Mobox3.AnGang.Dtos.Response.AgvResponse; using HH.WCS.Mobox3.AnGang.Helpers; using HH.WCS.Mobox3.AnGang.Debug; using static HH.WCS.Mobox3.AnGang.Dtos.Request.DebugRequest; using static HH.WCS.Mobox3.AnGang.Dtos.Response.DebugResponse; namespace HH.WCS.Mobox3.AnGang.Controllers { /// /// 测试用,如果项目中要和设备对接,前期设备无法测试,用接口模拟 /// [RoutePrefix("api")] public class DebugController : System.Web.Http.ApiController { /// /// 模拟 AGV 多次回报任务状态 /// /// 容器号 /// [HttpPost] [Route("AgvSeriesReports")] public ReturnResults AgvSeriesReports(UpdateTaskState model) { return DebugService.AgvSeriesReports(model); } /// /// 初始化数据库 /// /// [HttpPost] [Route("CreateDatabase")] public string CreateDatabase(CoverInfo model) { return DebugService.CreateDatabase(model.IsCover); } /// /// DEBUG:插入货位、容器、货品信息 /// /// [HttpPost] [Route("InsertLocCntrCg")] public string InsertLocCntrCg() { return DebugService.InsertLocCntrCg(); } [HttpPost] [Route("SetTaskWeight")] public string SetTaskWeight(SetTaskWeightInfo model) { return DebugService.SetTaskWeight(model); } } }