using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; using System.Threading.Tasks; using VolPro.Core.EFDbContext; using VolPro.Core.Enums; using VolPro.Core.Filters; using VolPro.Core.Middleware; using VolPro.Core.UserManager; using VolPro.Core.Utilities; using VolPro.Entity.DomainModels; namespace VolPro.Core.Generic { /// /// 不同数据库类型的通用 CRUD 提供接口 /// public interface IGenericDbProvider { /// /// 查询 /// /// /// /// Task> GetPageDataAsync(PageDataOptions options, bool isDetail = false); /// /// 明细查询 /// /// /// Task> GetDetailPageAsync(PageDataOptions options); /// /// 添加 /// /// /// Task AddAsync(SaveModel saveModel); /// /// 编辑 /// /// /// Task UpdateAsync(SaveModel saveModel); /// /// 删除 /// /// /// /// Task DelAsync(List keys, bool delDetail = true); /// /// 上传 /// /// /// Task UploadAsync(List files); /// /// 下载导入Excel模板 /// /// byte[] DownLoadTemplateAsync(); /// /// 导入表数据Excel /// /// /// Task ImportAsync(List fileInput); /// /// 导出文件 /// /// /// Task ExportAsync(PageDataOptions loadData); Task AuditAsync(object[] id, int? auditStatus, string auditReason); } }