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 { /// /// 邮件配置服务定义 /// public interface ITaskMailService { /// /// 渲染模板 /// /// 单据类型 /// 业务ID /// 业务类型 /// Task> RenderTemplateAsync(DocumentType docType, long bsId, BusinessType businessType); /// /// 获取邮件内容 /// /// 单据类型 /// 邮件模板名称 /// 委托编号 /// Task>> GetMailContentAsync(string customerNO, DocumentType docType, string? templateName = null); /// /// 获取分页列表 /// /// /// Task>> GetListAsync(PageRequest request); /// /// 详情 /// /// /// Task> GetAsync(long id); /// /// 根据配置名获取 /// /// /// Task GetAsync(string name); /// /// 编辑 /// /// /// Task EditAsync(BusinessTaskMail taskMail); /// /// 删除 /// /// /// Task DeleteAsync(IdModel model); /// /// 删除附件 /// /// /// Task DeleteAttachmentsAsync(List attachments); } }