ICcRepository.cs 826 B

12345678910111213141516171819202122232425262728293031
  1. using System.Collections.Generic;
  2. using System.Threading.Tasks;
  3. using GxPress.Entity;
  4. using Datory;
  5. namespace GxPress.Repository.Interface
  6. {
  7. /// <summary>
  8. /// 抄送人
  9. /// </summary>
  10. public interface ICcRepository : IRepository
  11. {
  12. /// <summary>
  13. /// 根据通知ID获取抄送人
  14. /// </summary>
  15. /// <param name="noticeId"></param>
  16. /// <returns></returns>
  17. Task<IEnumerable<Cc>> GetNoticeCcByNoticeIdAsync(int noticeId,int sourceType);
  18. Task<bool> DeleteAsync(int sourceId, int sourceType);
  19. Task<int> InsertAsync(Cc noticeCc);
  20. /// <summary>
  21. /// 添加通知抄送人
  22. /// </summary>
  23. /// <param name="noticeCcs"></param>
  24. /// <returns></returns>
  25. Task<bool> InsertAsync(List<Cc> noticeCcs);
  26. }
  27. }