IMissiveAnalyzeRepository.cs 1023 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Threading.Tasks;
  5. using Datory;
  6. using GxPress.Entity.Missive;
  7. using GxPress.Request.App.Missive;
  8. using GxPress.Result.App.Missive;
  9. using SqlKata;
  10. namespace GxPress.Repository.Interface.Missive
  11. {
  12. public interface IMissiveAnalyzeRepository : IRepository
  13. {
  14. Task<MissiveAnalyze> GetAsync(int id);
  15. Task<MissiveAnalyze> GetAsync(SqlKata.Query query);
  16. Task<bool> UpdateAsync(MissiveAnalyze missiveAnalyze);
  17. Task<bool> DeleteAsync(Query query);
  18. Task<bool> UpdateAsync(Query query);
  19. Task<IEnumerable<MissiveAnalyze>> GetAllAsync(Query query);
  20. Task<int> GetCount(Query query);
  21. /// <summary>
  22. /// 设置 点赞 转发 收藏
  23. /// </summary>
  24. /// <param name="request"></param>
  25. /// <returns></returns>
  26. Task<bool> SetMissiveAnalyzeAsync(MissiveAnalyzeRequest request);
  27. Task<int> CountAsync(SqlKata.Query query);
  28. }
  29. }