package com.stylefeng.guns.modular.system.dao;
|
|
import com.baomidou.mybatisplus.mapper.BaseMapper;
|
import com.stylefeng.guns.modular.system.model.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 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 id
|
* @param uid
|
*/
|
void readSystemNotice(@Param("id") Integer id, @Param("uid") Integer uid);
|
|
|
/**
|
* 删除数据
|
* @param id
|
* @param uid
|
*/
|
void delSystemNotice(@Param("id") Integer id, @Param("uid") Integer uid);
|
}
|