ChatsService.java 988 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package com.sqx.modules.chats.service;
  2. import com.sqx.modules.chats.entity.Chats;
  3. import com.sqx.modules.chats.utils.Result;
  4. public interface ChatsService {
  5. /**
  6. * 商家端未读消息
  7. * @param storeId
  8. * @return
  9. */
  10. Result count(Long storeId);
  11. Result userCount(Long count);
  12. /**
  13. * 商家端会话列表
  14. * @param storeId
  15. * @return
  16. */
  17. Result findAll(Long storeId, String userName,Long type,String starTime,String endTime,String read);
  18. Result findRead(Long storeId, String userName,Long type,String starTime,String endTime);
  19. Result findUnRead(Long storeId, String userName,Long type,String starTime,String endTime);
  20. /**
  21. * 用户端会话列表
  22. * @param userId
  23. * @return
  24. */
  25. Result userList(Long userId);
  26. //查询
  27. Result findOne(Long id);
  28. //删除
  29. Result delete(Long id);
  30. //添加
  31. Result saveBody(Chats entity);
  32. //修改
  33. Result updateBody(Chats entity);
  34. }