INoticeAddresseeRepository.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System.Collections.Generic;
  2. using System.Threading.Tasks;
  3. using GxPress.Entity;
  4. using Datory;
  5. using GxPress.Request.Notice;
  6. using GxPress.Result.Notice;
  7. using SqlKata;
  8. namespace GxPress.Repository.Interface
  9. {
  10. /// <summary>
  11. /// 收件人
  12. /// </summary>
  13. public interface INoticeAddresseeRepository : IRepository
  14. {
  15. /// <summary>
  16. /// 根据通知ID获取抄送人
  17. /// </summary>
  18. /// <param name="noticeId"></param>
  19. /// <returns></returns>
  20. Task<IEnumerable<NoticeAddressee>> GetNoticeAddresseeByNoticeIdAsync(int noticeId);
  21. Task<bool> DeleteAsync(int noticeId);
  22. Task<int> InsertAsync(NoticeAddressee noticeAddressee);
  23. /// <summary>
  24. /// 插入收件人
  25. /// </summary>
  26. /// <param name="noticeAddressees"></param>
  27. /// <returns></returns>
  28. Task<bool> InsertAsync(List<NoticeAddressee> noticeAddressees);
  29. Task<IEnumerable<NoticeReadListResult>> GetNoticeAddresseeByUserIdIdAsync(NoticeReadListRequest request);
  30. Task<int> CountAsync(SqlKata.Query query);
  31. Task<IEnumerable<NoticeAddressee>> GetAllAsync(SqlKata.Query query);
  32. Task<bool> UpdateAsync(SqlKata.Query query);
  33. /// <summary>
  34. /// 获取收件人
  35. /// </summary>
  36. /// <param name="noticeId"></param>
  37. /// <returns></returns>
  38. Task<IEnumerable<User>> GetUserByNoticeIdAsync(int noticeId);
  39. Task<bool> ExistsAsync(Query query);
  40. }
  41. }