| | |
| | | package com.yeshi.fanli.dao.mybatis.msg; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.msg.MsgOtherDetail; |
| | | |
| | | public interface MsgOtherDetailMapper extends BaseMapper<MsgOtherDetail> { |
| | | |
| | | /** |
| | | * 通过用户ID查询列表 |
| | | * |
| | | * @param uid |
| | | * @param start |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<MsgOtherDetail> listByUid(@Param("uid") Long uid, @Param("start") long start, @Param("count") int count); |
| | | |
| | | /** |
| | | * 查询用户的消息数量 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | long countByUid(@Param("uid") Long uid); |
| | | |
| | | /** |
| | | * 设置消息已读 |
| | | * |
| | | * @param uid |
| | | */ |
| | | void setMsgReadByUid(Long uid); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.msg;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.msg.MsgOtherDetail;
|
| | |
|
| | | public interface MsgOtherDetailMapper extends BaseMapper<MsgOtherDetail> {
|
| | |
|
| | | /**
|
| | | * 通过用户ID查询列表
|
| | | * |
| | | * @param uid
|
| | | * @param start
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<MsgOtherDetail> listByUid(@Param("uid") Long uid, @Param("start") long start, @Param("count") int count);
|
| | |
|
| | | /**
|
| | | * 查询用户的消息数量
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | long countByUid(@Param("uid") Long uid);
|
| | | |
| | | /**
|
| | | * 设置消息已读
|
| | | * |
| | | * @param uid
|
| | | */
|
| | | void setMsgReadByUid(Long uid);
|
| | |
|
| | | } |