IRepositoryWorkflow.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Linq.Expressions;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using SqlSugar;
  8. using XF.Domain.Entities;
  9. namespace XF.Domain.Repository
  10. {
  11. //public interface IRepositoryWorkflow<TEntity, TKey> : IRepositorySqlSugar<TEntity, TKey>
  12. // where TEntity : class, IEntity<string>, new()
  13. // where TKey : IEquatable<TKey>
  14. //{
  15. // ISugarQueryable<TEntity> Queryable(bool permissionVerify = false, bool includeDeleted = false, bool workflowFilter = true);
  16. //}
  17. //public interface IRepositoryWorkflow<TEntity> : IRepositoryWorkflow<TEntity, string> where TEntity : class, IEntity<string>, new()
  18. //{
  19. //}
  20. public interface IRepositoryWorkflow<TEntity> : IRepositorySqlSugar<TEntity> where TEntity : class, IEntity<string>, new()
  21. {
  22. /// <summary>
  23. ///
  24. /// </summary>
  25. /// <param name="permissionVerify"></param>
  26. /// <param name="includeDeleted"></param>
  27. /// <param name="canView">是否可查看</param>
  28. /// <param name="hasHandled">是否已办理,null: 不过滤</param>
  29. /// <param name="isAdmin">是否是管理员</param>
  30. /// <returns></returns>
  31. ISugarQueryable<TEntity> Queryable(bool permissionVerify = false, bool includeDeleted = false, bool canView = false, bool? hasHandled = null, bool? isAdmin = false, bool? hasHandledStep = null);
  32. }
  33. }