You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
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
{
/// <summary>
/// 任务台-BC子任务相关接口
/// </summary>
public class TaskManageBCController : ApiController
{
private readonly ITaskManageBCService _taskManageBCService ;
public TaskManageBCController ( ITaskManageBCService taskManageBCService )
{
_taskManageBCService = taskManageBCService ;
}
/// <summary>
/// 通过任务主键获取BC详情
/// </summary>
/// <param name="taskId">BC任务主键</param>
[HttpPost("GetInfoByTaskId")]
public async Task < DataResult < TaskManageOrderResultDto > > GetInfoByTaskId ( long taskId )
{
var result = await _taskManageBCService . GetInfoByTaskId ( taskId ) ;
return result ;
}
/// <summary>
/// 通过任务信息( BC) 生成订舱或舱位
/// </summary>
/// <param name="model">生成订舱或者舱位请求</param>
/// <returns>返回回执</returns>
[HttpPost("CreateBookingAndSlot")]
public async Task < DataResult < TaskManageOrderResultDto > > CreateBookingAndSlot ( [ FromBody ] BookingOrSlotGenerateDto model )
{
var result = await _taskManageBCService . CreateBookingAndSlot ( model ) ;
return result ;
}
}
}