DocMsgMapper.java 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. package com.doc.biz.mapper;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.doc.biz.domain.DocMsg;
  4. import org.apache.ibatis.annotations.Param;
  5. import java.util.List;
  6. /**
  7. * 消息管理Mapper接口
  8. *
  9. * @author wukai
  10. * @date 2023-08-15
  11. */
  12. public interface DocMsgMapper extends BaseMapper<DocMsg> {
  13. /**
  14. * 查询消息管理
  15. *
  16. * @param msgId 消息管理主键
  17. * @return 消息管理
  18. */
  19. public DocMsg selectDocMsgByMsgId(Long msgId);
  20. /**
  21. * 查询消息管理列表
  22. *
  23. * @param docMsg 消息管理
  24. * @return 消息管理集合
  25. */
  26. public List<DocMsg> selectDocMsgList(DocMsg docMsg);
  27. /**
  28. * 新增消息管理
  29. *
  30. * @param docMsg 消息管理
  31. * @return 结果
  32. */
  33. public int insertDocMsg(DocMsg docMsg);
  34. /**
  35. * 修改消息管理
  36. *
  37. * @param docMsg 消息管理
  38. * @return 结果
  39. */
  40. public int updateDocMsg(DocMsg docMsg);
  41. /**
  42. * 删除消息管理
  43. *
  44. * @param msgId 消息管理主键
  45. * @return 结果
  46. */
  47. public int deleteDocMsgByMsgId(Long msgId);
  48. /**
  49. * 批量删除消息管理
  50. *
  51. * @param msgIds 需要删除的数据主键集合
  52. * @return 结果
  53. */
  54. public int deleteDocMsgByMsgIds(Long[] msgIds);
  55. /**
  56. * 查询聊天记录
  57. *
  58. * @param from 当前用户ID
  59. * @param to 对方用户ID
  60. * @return
  61. */
  62. List<DocMsg> selectRecordList(@Param("from") Long from, @Param("to") Long to);
  63. }