| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 请æ±ä»»å¡è´§ä½ |
| | | /// æ´æ°è´§ä½ä»»å¡ç¶æå°ä¸ä¸ä¸ªèç¹ |
| | | /// </summary> |
| | | /// <param name="input">è¯·æ±æ°æ®</param> |
| | | /// <returns></returns> |
| | | [HttpPost, AllowAnonymous, Route("RequestLocationTaskAsync")] |
| | | [HttpPost, AllowAnonymous, Route("RequestLocationAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] // 5ç§èæµ |
| | | public async Task<WebResponseContent> UpdateExistingTask([FromBody] RequestTaskDto input) |
| | | public async Task<WebResponseContent> RequestLocationAsync([FromBody] RequestTaskDto input) |
| | | { |
| | | return await Service.UpdateExistingTask(input); |
| | | return await Service.RequestLocationAsync(input); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | return await Service.RequestAcrossFloorTaskAsync(taskDto); |
| | | } |
| | | |
| | | [HttpPost, AllowAnonymous, Route("RequestPointAcrossFloorTaskAsync")] |
| | | public async Task<WebResponseContent> RequestPointAcrossFloorTaskAsync([FromBody] RequestTaskDto taskDto) |
| | | { |
| | | return await Service.RequestPointAcrossFloorTaskAsync(taskDto); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// AGVæ¬è¿ä»»å¡è¯·æ± |
| | | /// </summary> |
| | | /// <param name="taskDto"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, AllowAnonymous, Route("RequestAGVCarryTaskAsync")] |
| | | public Task<WebResponseContent> RequestAGVCarryTaskAsync([FromBody] RequestTaskDto taskDto) |
| | | public async Task<WebResponseContent> RequestAGVCarryTaskAsync([FromBody] RequestTaskDto taskDto) |
| | | { |
| | | return Service.RequestAGVCarryTaskAsync(taskDto); |
| | | return await Service.RequestAGVCarryTaskAsync(taskDto); |
| | | } |
| | | |
| | | [HttpPost, AllowAnonymous, Route("RequestAGVCarryTaskAsync")] |
| | | public async Task<WebResponseContent> RequestPointAGVCarryTaskAsync([FromBody] RequestTaskDto taskDto) |
| | | { |
| | | return await Service.RequestPointAGVCarryTaskAsync(taskDto); |
| | | } |
| | | |
| | | [HttpPost, AllowAnonymous, Route("GetEmptyLocation")] |
| | | public async Task<DtLocationInfo> GetEmptyLocation(string roadWay) |
| | | { |
| | | return await Service.GetEmptyLocation(roadWay); |
| | | } |
| | | |
| | | [HttpPost, AllowAnonymous, Route("GetAGVEmptyCacheLocation")] |
| | | public async Task<DtLocationInfo> GetAGVEmptyCacheLocation(int AreaId) |
| | | { |
| | | return await Service.GetAGVEmptyCacheLocation(AreaId); |
| | | } |
| | | } |