MessageService.java 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. package com.goafanti.message.service;
  2. import java.util.Date;
  3. import java.util.List;
  4. import java.util.Map;
  5. import com.goafanti.app.bo.IndexBo;
  6. import com.goafanti.common.model.JpushEasemobAccount;
  7. import com.goafanti.common.model.JtMessageProducer;
  8. import com.goafanti.common.model.MessageConsumer;
  9. import com.goafanti.common.model.MessageFromSystem;
  10. import com.goafanti.common.model.MessageProducer;
  11. import com.goafanti.core.mybatis.page.Pagination;
  12. import com.goafanti.message.bo.MessageBo;
  13. import com.goafanti.message.bo.MessageListBo;
  14. public interface MessageService {
  15. /**
  16. * 查找推送用户
  17. * @param selectMap
  18. * @param subject
  19. * @return
  20. */
  21. String selectSendUser(Map<Integer,String> selectMap,Integer type);
  22. /**
  23. * 查询推送运营人员
  24. * @param selectMap
  25. * @param subject
  26. * @return
  27. */
  28. String selectSendAdmin(Map<Integer,String> selectMap,Integer type);
  29. /**
  30. * 查询推荐内容
  31. * @param selectMap
  32. * @param type
  33. * @return
  34. */
  35. List<MessageFromSystem> selectRecommend(Map<Integer, String> selectMap,Integer type);
  36. /**
  37. *
  38. * @param selectMap
  39. * @param title
  40. * @param body
  41. * @param subject
  42. * @return
  43. */
  44. int insertSystemMessage(Map<Integer, String> targetMap,Integer targetType,String title, String body, Integer subject,Date createTime,Integer isDraft);
  45. /**
  46. * 同步消息
  47. * @param uid
  48. * @return
  49. */
  50. List<MessageBo> selectSyncMessage(String uid);
  51. /**
  52. * 更新消息表
  53. * @param producerList
  54. * @return
  55. */
  56. public int updateMessageProducer(List<MessageProducer> producerList);
  57. /**
  58. * 批量插生产表
  59. * @param target
  60. * @return
  61. */
  62. public int insertBatchProducer(List<MessageProducer> target);
  63. /**
  64. * 批量插入消费表
  65. * @param target
  66. * @return
  67. */
  68. public int insertBatchConsumer(List<MessageConsumer> target);
  69. /**
  70. * 绑定第三方账号
  71. * @param jea
  72. * @return
  73. */
  74. public int updateJpushEasemobAccount(String uuid,String registrationId,String easemobName, String easemobPass);
  75. /**
  76. * 新增第三方账号
  77. * @param uuid
  78. * @param easemobName 环信id
  79. * @param easemobPass 环信密码
  80. * @return
  81. */
  82. public int addJpushEasemobAccount(String uuid,String uid,String easemobName,String easemobPass);
  83. /**
  84. * 更新
  85. * @param messageId
  86. * @param uid
  87. * @param readTime
  88. * @return
  89. */
  90. public int updateMessageConsumer(String messageId);
  91. /**
  92. * 生成推荐消息
  93. * @param selectMap
  94. * @param type
  95. * @param subject
  96. * @return
  97. */
  98. public int insertRecommendMessage(Map<Integer, String> sourceMap, Integer sourceType, Map<Integer, String> targetMap,Integer targetType,Integer subject,Integer isDraft);
  99. /**
  100. * 系统消息列表
  101. * @param isDraft
  102. * @return
  103. */
  104. Pagination<MessageListBo> listSystemMessage(Integer isDraft,Integer subject,Integer pageNo,Integer pageSize);
  105. /**
  106. * 更新消息
  107. * @param messageId
  108. * @param title
  109. * @param body
  110. * @return
  111. */
  112. int updateSystemMessage(String messageId, String title, String body,Integer isDraft);
  113. /**
  114. * 删除消息
  115. * @param messageId
  116. * @return
  117. */
  118. int deleteSystemMessage(String messageId);
  119. /**
  120. * 首页消息归类
  121. * @return
  122. */
  123. IndexBo selectMessageWithGroup();
  124. /**
  125. * 读取个人消息列表
  126. * @param subject 消息类型
  127. * @param sourceType 推荐类型
  128. * @return
  129. */
  130. Pagination<MessageListBo> listPersonalMessage(Integer subject,Integer sourceType,Integer pageNo,Integer pageSize);
  131. /**
  132. * 查看消息详情
  133. * @param messageId
  134. * @return
  135. */
  136. MessageFromSystem selectSystemMessageDetail(String messageId);
  137. /**
  138. * 查询第三方账号
  139. * @param uid
  140. * @return
  141. */
  142. JpushEasemobAccount selectSynAccByUid(String uid);
  143. /**
  144. * 新增系统消息
  145. * @param messageProducer
  146. * @return
  147. */
  148. int addMessage(JtMessageProducer messageProducer);
  149. /**
  150. * 系统向注册用户发送信息
  151. * @param messageId
  152. * @return
  153. */
  154. int sendMessage(String messageId);
  155. Pagination<MessageListBo> applistMessage(Integer pageNo, Integer pageSize);
  156. MessageListBo appReadMessage(String id);
  157. }