| | |
| | | 锘縰sing HslCommunication.WebSocket; |
| | | 锘縰sing Autofac.Core; |
| | | using HslCommunication.WebSocket; |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | |
| | | public WebResponseContent ReceiveWMSTask([FromBody] List<WMSTaskDTO> taskDTOs) |
| | | { |
| | | return Service.ReceiveWMSTask(taskDTOs); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 浠诲姟閲嶆柊涓嬪彂 |
| | | /// </summary> |
| | | /// <param name="taskNum"></param> |
| | | /// <returns></returns> |
| | | [HttpPost,HttpGet,Route("ResendTask"),AllowAnonymous] |
| | | public WebResponseContent ResendTask(int taskNum) |
| | | { |
| | | return Service.ResendTask(taskNum); |
| | | } |
| | | |
| | | [HttpPost, HttpGet, Route("RequestAssignLocation"), AllowAnonymous] |
| | |
| | | { |
| | | return Service.RecWMSTaskCompleted(taskNum); |
| | | } |
| | | |
| | | |
| | | [HttpPost, HttpGet, Route("YLPurchasePush"), AllowAnonymous] |
| | | public WebResponseContent YLPurchasePush(string code) |
| | | { |
| | |
| | | return content.Error(ex.Message); |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// 鑾峰彇鏁呴殰宸烽亾 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, HttpGet, Route("ExistRoadwaysError"), AllowAnonymous] |
| | | public List<string> ExistRoadwaysError() |
| | | { |
| | | return RoadwayError.Roadways.Select(x => x.Roadway).Distinct().ToList(); |
| | | } |
| | | } |
| | | } |