using GxPress.Service.Interface.FlowAttachment; using GxPress.Repository.Interface.FlowAttachment; using System.Collections.Generic; using System.Threading.Tasks; namespace GxPress.Service.Implement.FlowAttachment { public class FlowAttachmentService : IFlowAttachmentService { private readonly IFlowAttachmentRepository flowAttachmentRepository; public FlowAttachmentService(IFlowAttachmentRepository flowAttachmentRepository) { this.flowAttachmentRepository = flowAttachmentRepository; } /// /// 添加 /// /// /// public async Task InsertFlowAttachments(List flowAttachments) { return await flowAttachmentRepository.InsertsAsync(flowAttachments); } /// /// 获取文件 /// /// /// public async Task> FindFlowAttachments(SqlKata.Query query) { return await flowAttachmentRepository.GetAllAsync(query); } } }