| | |
| | | /// <param name="saveModel">ä»»å¡å·</param> |
| | | /// <returns>æåæå¤±è´¥</returns> |
| | | [HttpGet, Route("CompleteTaskAsync"), AllowAnonymous] |
| | | //[TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] // 5ç§èæµ |
| | | public async Task<WebResponseContent> CompleteTaskAsync(int taskNum) |
| | | { |
| | | return await Service.CompleteAsync(taskNum); |
| | |
| | | /// <param name="input">è¯·æ±æ°æ®</param> |
| | | /// <returns></returns> |
| | | [HttpPost, AllowAnonymous, Route("RequestTaskAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] // 5ç§èæµ |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public async Task<WebResponseContent> RequestTaskAsync([FromBody] RequestTaskDto input) |
| | | { |
| | | return await Service.RequestTaskAsync(input); |
| | |
| | | /// <param name="input">è¯·æ±æ°æ®</param> |
| | | /// <returns></returns> |
| | | [HttpPost, AllowAnonymous, Route("RequestLocationAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] // 5ç§èæµ |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public async Task<WebResponseContent> RequestLocationAsync([FromBody] RequestTaskDto input) |
| | | { |
| | | return await Service.RequestLocationAsync(input); |
| | |
| | | /// <param name="request">è¯·æ±æ°æ®</param> |
| | | /// <returns></returns> |
| | | [HttpPost, AllowAnonymous, Route("RequestOutTaskAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] // 5ç§èæµ |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public async Task<WebResponseContent> RequestOutTaskAsync([FromBody] RequestTaskDto taskDto) |
| | | { |
| | | return await Service.RequestOutTaskAsync(taskDto); |
| | |
| | | /// <param name="input">è¯·æ±æ°æ®</param> |
| | | /// <returns></returns> |
| | | [HttpPost,HttpGet,Route("UpdateTaskStatus") ,AllowAnonymous] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] // 5ç§èæµ |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public async Task<WebResponseContent> UpdateTaskStatus([FromBody] UpdateStatusDto input) |
| | | { |
| | | return await Service.UpdateTaskStatus(input.TaskNum, input.TaskState); |
| | |
| | | /// <param name="taskDto"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, AllowAnonymous, Route("RequestAcrossFloorTaskAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public async Task<WebResponseContent> RequestAcrossFloorTaskAsync([FromBody] RequestTaskDto taskDto) |
| | | { |
| | | return await Service.RequestAcrossFloorTaskAsync(taskDto); |
| | | } |
| | | |
| | | [HttpPost, AllowAnonymous, Route("RequestPointAcrossFloorTaskAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public async Task<WebResponseContent> RequestPointAcrossFloorTaskAsync([FromBody] RequestTaskDto taskDto) |
| | | { |
| | | return await Service.RequestPointAcrossFloorTaskAsync(taskDto); |
| | |
| | | /// <param name="taskDto"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, AllowAnonymous, Route("RequestAGVCarryTaskAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public async Task<WebResponseContent> RequestAGVCarryTaskAsync([FromBody] RequestTaskDto taskDto) |
| | | { |
| | | return await Service.RequestAGVCarryTaskAsync(taskDto); |
| | | } |
| | | |
| | | [HttpPost, AllowAnonymous, Route("RequestAGVCarryTaskAsync")] |
| | | [HttpPost, AllowAnonymous, Route("RequestPointAGVCarryTaskAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public async Task<WebResponseContent> RequestPointAGVCarryTaskAsync([FromBody] RequestTaskDto taskDto) |
| | | { |
| | | return await Service.RequestPointAGVCarryTaskAsync(taskDto); |
| | | } |
| | | |
| | | [HttpPost, AllowAnonymous, Route("GetEmptyLocation")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public async Task<DtLocationInfo> GetEmptyLocation(string roadWay) |
| | | { |
| | | return await Service.GetEmptyLocation(roadWay); |
| | | } |
| | | |
| | | [HttpPost, AllowAnonymous, Route("GetAGVEmptyCacheLocation")] |
| | | public async Task<DtLocationInfo> GetAGVEmptyCacheLocation(int AreaId) |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public async Task<DtLocationInfo> GetAGVEmptyCacheLocation(int AreaId,DtLocationInfo location) |
| | | { |
| | | return await Service.GetAGVEmptyCacheLocation(AreaId); |
| | | return await Service.GetAGVEmptyCacheLocation(AreaId,location); |
| | | } |
| | | |
| | | [HttpPost, AllowAnonymous, Route("StackerIsNeedRelocationAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public async Task<WebResponseContent> StackerIsNeedRelocationAsync([FromBody] RequestTaskDto taskDto) |
| | | { |
| | | return await Service.StackerIsNeedRelocationAsync(taskDto); |
| | | } |
| | | |
| | | [HttpPost, AllowAnonymous, Route("AGVIsNeedRelocationAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public async Task<WebResponseContent> AGVIsNeedRelocationAsync([FromBody] RequestTaskDto taskDto) |
| | | { |
| | | return await Service.AGVIsNeedRelocationAsync(taskDto); |
| | | } |
| | | } |