puzhibing
2024-03-04 7e7f901b2172281dc294dfbc67e6ad00625f09f4
cloud-server-management/src/main/java/com/dsh/course/mapper/SystemNoticeMapper.java
New file
@@ -0,0 +1,47 @@
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);
}