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.
74 lines
2.4 KiB
C#
74 lines
2.4 KiB
C#
using DS.Module.Core;
|
|
using DS.Module.Core.Data;
|
|
using DS.WMS.Core.Op.Entity;
|
|
using DS.WMS.Core.TaskInteraction.Entity;
|
|
|
|
namespace DS.WMS.Core.TaskInteraction.Interface
|
|
{
|
|
/// <summary>
|
|
/// 邮件配置服务定义
|
|
/// </summary>
|
|
public interface ITaskMailService
|
|
{
|
|
///// <summary>
|
|
///// 渲染模板
|
|
///// </summary>
|
|
///// <param name="docType">单据类型</param>
|
|
///// <param name="bsId">业务ID</param>
|
|
///// <param name="businessType">业务类型</param>
|
|
///// <returns></returns>
|
|
//Task<DataResult<string>> RenderTemplateAsync(DocumentType docType, long bsId, BusinessType businessType);
|
|
|
|
///// <summary>
|
|
///// 获取邮件内容
|
|
///// </summary>
|
|
///// <param name="docType">单据类型</param>
|
|
///// <param name="templateName">邮件模板名称</param>
|
|
///// <param name="customerNO">委托编号</param>
|
|
///// <returns></returns>
|
|
//Task<DataResult<Tuple<string, string>>> GetMailContentAsync(string customerNO, DocumentType docType, string? templateName = null);
|
|
|
|
/// <summary>
|
|
/// 获取分页列表
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <returns></returns>
|
|
Task<DataResult<List<BusinessTaskMail>>> GetListAsync(PageRequest request);
|
|
|
|
/// <summary>
|
|
/// 详情
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
Task<DataResult<BusinessTaskMail>> GetAsync(long id);
|
|
|
|
/// <summary>
|
|
/// 根据配置名获取
|
|
/// </summary>
|
|
/// <param name="name"></param>
|
|
/// <returns></returns>
|
|
Task<BusinessTaskMail> GetAsync(string name);
|
|
|
|
/// <summary>
|
|
/// 编辑
|
|
/// </summary>
|
|
/// <param name="taskMail"></param>
|
|
/// <returns></returns>
|
|
Task<DataResult> EditAsync(BusinessTaskMail taskMail);
|
|
|
|
/// <summary>
|
|
/// 删除
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
Task<DataResult> DeleteAsync(IdModel model);
|
|
|
|
/// <summary>
|
|
/// 删除附件
|
|
/// </summary>
|
|
/// <param name="attachments"></param>
|
|
/// <returns></returns>
|
|
Task<DataResult> DeleteAttachmentsAsync(List<BusinessTaskAttachment> attachments);
|
|
}
|
|
}
|