IFlowRepository.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System.Collections.Generic;
  2. using System.Threading.Tasks;
  3. using GxPress.Entity.WorkFlow;
  4. using GxPress.Request.App.Flow;
  5. using Datory;
  6. using GxPress.Common.Page;
  7. namespace GxPress.Repository.Interface.WorkFlow
  8. {
  9. public interface IFlowRepository : IRepository
  10. {
  11. Task<int> InsertAsync(Flow flow);
  12. Task<bool> DeleteAsync(int id);
  13. Task<Flow> GetAsync(int flowId);
  14. Task<int> GetCountByUserIdAsync(int userId, bool checking, FlowListRequest request);
  15. Task<IEnumerable<Flow>> GetListAsync(int processId);
  16. Task<int> GetCountAsync(int processId, string state, string startDate, string endDate);
  17. Task<IEnumerable<Flow>> GetListAllAsync(int page, int perPage, int processId, string state, string startDate, string endDate);
  18. Task<IEnumerable<Flow>> GetListByUserIdAsync(int userId, bool checking, FlowListRequest request);
  19. Task<IEnumerable<Flow>> GetListByIdListAsync(IEnumerable<int> flowIdList, int page, int perPage);
  20. Task UpdateStateAsync(int flowId, string state);
  21. Task UpdateProcessNodeIdAsync(int flowId, int processNodeId);
  22. /// <summary>
  23. /// 新增 未读数量
  24. /// </summary>
  25. /// <param name="userId"></param>
  26. /// <param name="checking"></param>
  27. /// <param name="request"></param>
  28. /// <returns></returns>
  29. Task<int> GetUReadCountByUserIdAsync(int userId, bool checking, FlowListRequest request);
  30. Task<int> CountAsync(SqlKata.Query query);
  31. Task<PagedList<Flow>> GetFlowListAllAsync(int page, int perPage, int processId, string state, string startDate, string endDate);
  32. }
  33. }