New file |
| | |
| | | package com.dsh.course.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.dsh.course.entity.SystemNotice; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | public interface SystemNoticeMapper extends BaseMapper<SystemNotice> { |
| | | |
| | | |
| | | /** |
| | | * 获取未阅读数量 |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | Integer queryNoReadNoticeNum(@Param("uid") Integer uid, @Param("userType") Integer userType); |
| | | |
| | | |
| | | /** |
| | | * 获取消息列表 |
| | | * @param type |
| | | * @param pageNum |
| | | * @param size |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | List<Map<String, Object>> queryList(@Param("type") Integer type, @Param("pageNum") Integer pageNum, |
| | | @Param("size") Integer size, @Param("uid") Integer uid, @Param("userType") Integer userType, @Param("language") Integer language); |
| | | |
| | | |
| | | /** |
| | | * 阅读操作 |
| | | * @param id |
| | | * @param uid |
| | | */ |
| | | void readSystemNotice(@Param("id") Integer id, @Param("uid") Integer uid, @Param("userType") Integer userType); |
| | | |
| | | |
| | | /** |
| | | * 删除数据 |
| | | * @param id |
| | | * @param uid |
| | | */ |
| | | void delSystemNotice(@Param("id") Integer id, @Param("uid") Integer uid, @Param("userType") Integer userType); |
| | | } |