IWaitHandleRepository.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Threading.Tasks;
  5. using Datory;
  6. using GxPress.Request.App.WaitHandle;
  7. using GxPress.Result.App.WaitHandle;
  8. using SqlKata;
  9. namespace GxPress.Repository.Interface.WaitHandle
  10. {
  11. public interface IWaitHandleRepository : IRepository
  12. {
  13. Task<int> InsertAsync(Entity.WaitHandle.WaitHandle waitHandle);
  14. Task<bool> UpdateAsync(Entity.WaitHandle.WaitHandle waitHandle);
  15. Task<bool> UpdateAsync(Query query);
  16. Task<bool> DeleteAsync(int id);
  17. Task<bool> DeleteAsync(Query query);
  18. Task<Entity.WaitHandle.WaitHandle> GetAsync(Query query);
  19. Task<Entity.WaitHandle.WaitHandle> GetAsync(int id);
  20. Task<IEnumerable<Entity.WaitHandle.WaitHandle>> GetAllAsync(Query query);
  21. Task<int> CountAsync(Query query);
  22. /// <summary>
  23. /// 查询
  24. /// </summary>
  25. /// <param name="request"></param>
  26. /// <returns></returns>
  27. Task<WaitHandleListResult> GetAllAsync(ListWaitHandleRequest request);
  28. Task<int> GetUFinishAsync(int userId);
  29. /// <summary>
  30. /// 获取详情
  31. /// </summary>
  32. /// <param name="id"></param>
  33. /// <returns></returns>
  34. Task<Entity.WaitHandle.WaitHandle> GetWaitAsync(int id);
  35. }
  36. }