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.

51 lines
1.7 KiB
C#

9 months ago
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Myshipping.Application
{
public interface ITaskManageDRAFTService
{
/// <summary>
/// 获取DRAFT详情
/// </summary>
/// <param name="pkId">DRAFT主键</param>
/// <returns>返回回执</returns>
9 months ago
Task<TaskDraftShowDto> GetInfo(string pkId);
9 months ago
/// <summary>
/// 通过任务主键获取DRAFT详情
/// </summary>
/// <param name="taskPkId">DRAFT任务主键</param>
/// <returns>返回回执</returns>
9 months ago
Task<TaskDraftShowDto> GetInfoByTaskId(string taskPkId);
9 months ago
/// <summary>
/// 任务ID下载附件
/// </summary>
/// <param name="taskPKId">DRAFT任务主键</param>
/// <param name="fileCategory">附件分类代码</param>
/// <returns>返回数据流</returns>
9 months ago
Task<IActionResult> DownloadFile(string taskPKId, string fileCategory = "DRAFT");
9 months ago
/// <summary>
/// 发送邮件
/// </summary>
/// <param name="taskPKId">DRAFT任务主键</param>
9 months ago
/// <param name="usePersonalEmailSend">是否使用个人邮箱发送</param>
9 months ago
/// <returns>返回回执</returns>
9 months ago
Task<TaskManageOrderResultDto> SendEmail(string taskPKId,bool usePersonalEmailSend = false);
9 months ago
/// <summary>
/// 重新处理DRAFT任务
/// 对未匹配订舱订单的任务记录重新对应订舱订单
/// </summary>
/// <param name="taskPkId">DRAFT任务主键</param>
/// <returns></returns>
Task<TaskManageOrderResultDto> SearchAndConnectBookingInfo(string taskPkId);
9 months ago
}
}