| | |
| | | import com.yeshi.fanli.entity.bus.msg.UserSystemMsg; |
| | | |
| | | public interface UserSystemMsgMapper extends BaseMapper<UserSystemMsg> { |
| | | |
| | | |
| | | /** |
| | | * 用户系统消息列表 |
| | | * |
| | | * @param uid |
| | | * @param start |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<UserSystemMsg> listByUid(@Param("uid") Long uid, @Param("start") long start, @Param("count") int count); |
| | | |
| | | /** |
| | | * 用户系统消息数量 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | Long countByUid(@Param("uid") Long uid); |
| | | |
| | | /** |
| | | * 根据系统站内信的ID获取消息 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | UserSystemMsg selectBySystemZNXId(@Param("id")Long id); |
| | | |
| | | /** |
| | | * 获取最近一条消息 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | UserSystemMsg selectLatestUserSystemMsg(@Param("uid")Long uid); |
| | | |
| | | /** |
| | | * 设置消息已读时 |
| | | * |
| | | * @param uid |
| | | */ |
| | | void setMsgReadByUid(Long uid); |
| | | } |