ITopicGroupRepository.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Threading.Tasks;
  5. using Datory;
  6. using GxPress.Entity.Topic;
  7. using GxPress.Request.App.Topic;
  8. using GxPress.Result;
  9. namespace GxPress.Repository.Interface.Topic
  10. {
  11. public interface ITopicGroupRepository : IRepository
  12. {
  13. Task<TopicGroup> GetAsync(int id);
  14. Task<bool> DeleteAsync(List<int> ids);
  15. Task<AppResultJson<Entity.Topic.TopicGroup>> InsertAsync(TopicGroup topicGroup);
  16. Task<IEnumerable<TopicGroup>> GetTopicGroupsAsync(int userId);
  17. /// <summary>
  18. /// 修改分组名称
  19. /// </summary>
  20. /// <param name="request"></param>
  21. /// <returns></returns>
  22. Task<bool> UpdateAsync(TopicGroupInRequest request);
  23. /// <summary>
  24. /// 排序
  25. /// </summary>
  26. /// <param name="firstId"></param>
  27. /// <param name="secondId"></param>
  28. /// <param name="userId"></param>
  29. /// <returns></returns>
  30. Task<bool> MoveSortAsync(int firstId, int secondId, int userId);
  31. Task<bool> UpdateAsync(SqlKata.Query query);
  32. }
  33. }