using DS.Module.Core; using DS.Module.DjyServiceStatus; using DS.WMS.Core.TaskPlat.Dtos; using DS.WMS.Core.TaskPlat.Interface; using DS.WMS.Core.TaskPlat.Method; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.TaskApi.Controllers { /// /// 任务台-BC子任务相关接口 /// public class TaskManageBCController : ApiController { private readonly ITaskManageBCService _taskManageBCService; public TaskManageBCController(ITaskManageBCService taskManageBCService) { _taskManageBCService = taskManageBCService; } /// /// 通过任务主键获取BC详情 /// /// BC任务主键 [HttpPost("GetInfoByTaskId")] public async Task> GetInfoByTaskId(long taskId) { var result = await _taskManageBCService.GetInfoByTaskId(taskId); return result; } /// /// 通过任务信息(BC)生成订舱或舱位 /// /// 生成订舱或者舱位请求 /// 返回回执 [HttpPost("CreateBookingAndSlot")] public async Task> CreateBookingAndSlot([FromBody] BookingOrSlotGenerateDto model) { var result = await _taskManageBCService.CreateBookingAndSlot(model); return result; } } }