接口 IMessageService
- 所有超级接口:
IBaseService<SysMessage>,com.baomidou.mybatisplus.extension.repository.IRepository<SysMessage>,com.baomidou.mybatisplus.extension.service.IService<SysMessage>
- 所有已知实现类:
MessageServiceImpl
Author: dongzp
Time: 2020-02-03 21:15:58
Project: xbaseweb-plus
Email: 90fanhua@gmail.com
Remarks:通知消息Service接口
-
字段概要
从接口继承的字段 com.baomidou.mybatisplus.extension.repository.IRepository
DEFAULT_BATCH_SIZE -
方法概要
修饰符和类型方法说明deleteAllMessage(Long userId) 删除所有消息sendMessage(Long userId, String title, String content) 发送消息发送系统消息sendWsMessage(Long receiveId, String content) 发送WebSocket消息setAllMessageIsRead(Long userId) 设置消息全部已读从接口继承的方法 com.hengyi.xbaseweb.system.service.base.IBaseService
save, saveBatch, saveOrUpdate, saveOrUpdateBatch, updateBatchById, updateById从接口继承的方法 com.baomidou.mybatisplus.extension.repository.IRepository
count, count, exists, getBaseMapper, getById, getEntityClass, getMap, getObj, getOne, getOne, getOneOpt, getOneOpt, getOptById, ktQuery, ktUpdate, lambdaQuery, lambdaQuery, lambdaUpdate, list, list, list, list, listByIds, listByMap, listMaps, listMaps, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeById, removeById, removeById, removeByIds, removeByIds, removeByMap, update, update, update从接口继承的方法 com.baomidou.mybatisplus.extension.service.IService
removeBatchByIds, saveBatch, saveOrUpdateBatch, updateBatchById
-
方法详细资料
-
sendMessage
发送消息- 参数:
userId- 接收人用户Idtitle-content-- 返回:
-
sendSysMessage
发送系统消息- 参数:
userId- 接收人用户IdtemplateCode-params-- 返回:
-
sendWsMessage
发送WebSocket消息- 参数:
receiveId-content-- 返回:
-
setAllMessageIsRead
设置消息全部已读- 参数:
userId-- 返回:
-
deleteAllMessage
删除所有消息- 参数:
userId-- 返回:
-