| | |
| | | using WIDESEA_DTO; |
| | | using WIDESEA_Core.BaseRepository; |
| | | using WIDESEA_DTO; |
| | | using WIDESEA_IStorageBasicRepository; |
| | | using WIDESEA_IStorageTaskRepository; |
| | | using WIDESEAWCS_QuartzJob.Models; |
| | | |
| | | namespace WIDESEA_WMSServer.Controllers; |
| | | |
| | |
| | | private readonly IHttpContextAccessor _httpContextAccessor; |
| | | private readonly IDt_TaskService _taskService; |
| | | private readonly ILocationInfoService _locationService; |
| | | private readonly ILocationInfoRepository _locationRepository; |
| | | private readonly IDt_TaskRepository BaseDal; |
| | | |
| | | public TaskController(IDt_TaskService taskService, |
| | | IHttpContextAccessor httpContextAccessor, |
| | | ILocationInfoService locationService) : base(taskService) |
| | | ILocationInfoService locationService, ILocationInfoRepository locationInfoRepository,IDt_TaskRepository repository) : base(taskService) |
| | | { |
| | | _httpContextAccessor = httpContextAccessor; |
| | | _taskService = taskService; |
| | | _locationService = locationService; |
| | | _locationRepository = locationInfoRepository; |
| | | BaseDal = repository; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// <param name="input">请求数据</param> |
| | | /// <returns></returns> |
| | | [HttpPost, AllowAnonymous, Route("RequestOutTaskToBZAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 11 })] // 5秒节流 |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] // 5秒节流 |
| | | public async Task<WebResponseContent> RequestOutTaskToBZAsync([FromBody] RequestTaskDto input) |
| | | { |
| | | return await Service.RequestOutTaskToBZAsync(input); |
| | |
| | | { |
| | | return Service.GetLocationStatus(); |
| | | } |
| | | |
| | | [HttpPost, AllowAnonymous, Route("GetRoadWayAsync")] |
| | | public async Task<string> GetRoadWayAsync(List<string> process) |
| | | { |
| | | return await Service.GetRoadWayAsync(process); |
| | | } |
| | | } |