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.

87 lines
2.9 KiB
C#

2 years ago
using Microsoft.AspNetCore.Mvc;
using System;
2 years ago
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Myshipping.Application
{
/// <summary>
/// BC任务
/// </summary>
public interface ITaskManageBCService
{
/// <summary>
/// 获取BC详情
/// </summary>
/// <param name="pkId">BC主键</param>
/// <returns>返回回执</returns>
Task<TaskManageOrderResultDto> GetInfo(string pkId);
/// <summary>
/// 通过任务主键获取BC详情
/// </summary>
/// <param name="taskPkId">BC任务主键</param>
/// <returns>返回回执</returns>
Task<TaskManageOrderResultDto> GetInfoByTaskId(string taskPkId);
2 years ago
/// <summary>
/// 获取待处理的BC任务来自邮件解析需要对应订舱系统会根据用户的订舱台账预配
/// </summary>
/// <returns>返回回执</returns>
Task<TaskManageOrderResultDto> GetToDoBCList();
/// <summary>
/// 任务ID下载附件
/// </summary>
/// <param name="taskPKId">BC任务主键</param>
11 months ago
/// <param name="fileCategory">附件分类代码</param>
2 years ago
/// <returns>返回数据流</returns>
11 months ago
Task<IActionResult> DownloadFile(string taskPKId, string fileCategory = "BC");
/// <summary>
/// 检索订舱信息
/// </summary>
/// <param name="query">检索条件</param>
/// <returns>返回回执</returns>
Task<TaskManageOrderResultDto> QueryBookingOrderList(BookingOrderBCQuery query);
11 months ago
/// <summary>
/// 转移任务(将任务指定给其他人)
/// </summary>
/// <param name="taskPKId">BC任务主键</param>
/// <param name="userId">用户ID</param>
/// <returns>返回回执</returns>
Task<TaskManageOrderResultDto> TransferTask(string taskPKId,long userId);
/// <summary>
/// 生成订舱或舱位
/// </summary>
/// <param name="model">生成订舱或者舱位请求</param>
/// <returns>返回回执</returns>
Task<TaskManageOrderResultDto> CreateBookingAndSlot(BookingOrSlotGenerateDto model);
/// <summary>
/// 取消任务
/// </summary>
/// <param name="taskPKId">BC任务主键</param>
/// <returns>返回回执</returns>
Task<TaskManageOrderResultDto> CancelTask(string taskPKId);
11 months ago
/// <summary>
/// 获取服务项目列表
/// </summary>
/// <returns>返回回执</returns>
Task<List<ServiceProjectBaseDto>> GetProjectList();
11 months ago
/// <summary>
/// 发送邮件
/// </summary>
/// <param name="taskPKId">BC任务主键</param>
/// <returns>返回回执</returns>
Task<TaskManageOrderResultDto> SendEmail(string taskPKId);
2 years ago
}
}