ITopicService.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Threading.Tasks;
  5. using GxPress.Common.Page;
  6. using GxPress.Request.App.Topic;
  7. using GxPress.Result.App.Topic;
  8. namespace GxPress.Service.Interface.Topic
  9. {
  10. public interface ITopicService : IService
  11. {
  12. /// <summary>
  13. /// 根据GroupId删除
  14. /// </summary>
  15. /// <param name="ids"></param>
  16. /// <returns></returns>
  17. Task<bool> DeleteTopicGroupAsync(List<int> ids);
  18. /// <summary>
  19. /// 添加话题分组成员
  20. /// </summary>
  21. /// <param name="userIds"></param>
  22. /// <param name="topicGroupId"></param>
  23. /// <returns></returns>
  24. Task<bool> InsertTopicGroupUserAsync(List<int> userIds, int topicGroupId);
  25. /// <summary>
  26. /// 根据ID删除换题分组成员
  27. /// </summary>
  28. /// <param name="ids"></param>
  29. /// <returns></returns>
  30. Task<bool> DeleteTopicGroupUserAsync(List<int> ids);
  31. /// <summary>
  32. /// 创建话题
  33. /// </summary>
  34. /// <param name="request"></param>
  35. /// <returns></returns>
  36. Task<bool> InsertTopicAsync(TopicInRequest request);
  37. /// <summary>
  38. /// 删除话题
  39. /// </summary>
  40. /// <param name="id"></param>
  41. /// <returns></returns>
  42. Task<bool> DeleteAsync(int id);
  43. /// <summary>
  44. /// 修改话题
  45. /// </summary>
  46. /// <param name="request"></param>
  47. /// <returns></returns>
  48. Task<bool> UpdateAsync(TopicUpdateRequest request);
  49. /// <summary>
  50. /// 话题分组移动成员到
  51. /// </summary>
  52. /// <param name="request"></param>
  53. /// <returns></returns>
  54. Task<bool> MoveToGroupAsync(MoveToGroupRequest request);
  55. /// <summary>
  56. /// 获取话题详情
  57. /// </summary>
  58. /// <param name="request"></param>
  59. /// <returns></returns>
  60. Task<TopicDetailResult> GetTopicDetailResultAsync(TopicDetailRequest request);
  61. /// <summary>
  62. /// 根据GroupId获取通知
  63. /// </summary>
  64. /// <param name="request"></param>
  65. /// <returns></returns>
  66. Task<PagedList<TopicListPageResult>> FindTopicByGroupIdAsync(TopicDetailListRequest request);
  67. /// <summary>
  68. /// 获取话题列表
  69. /// </summary>
  70. /// <param name="request"></param>
  71. /// <returns></returns>
  72. Task<PagedList<TopicListPageResult>> GetTopicPageAsync(TopicPageSearchRequest request);
  73. }
  74. }