package com.supersavedriving.driver.modular.system.service;
|
|
import com.baomidou.mybatisplus.service.IService;
|
import com.supersavedriving.driver.modular.system.warpper.SystemMessageWarpper;
|
import com.supersavedriving.driver.modular.system.model.SystemMessage;
|
|
import java.util.List;
|
|
|
/**
|
* 系统消息
|
* @author pzb
|
* @Date 2023/2/10 15:34
|
*/
|
public interface ISystemMessageService extends IService<SystemMessage> {
|
|
|
/**
|
* 获取个人系统消息列表
|
* @param uid
|
* @param pageNum
|
* @param size
|
* @return
|
* @throws Exception
|
*/
|
List<SystemMessageWarpper> querySystemMessageList(Integer uid, Integer pageNum, Integer size) throws Exception;
|
|
|
/**
|
* 阅读系统消息
|
* @param uid
|
* @param ids
|
* @throws Exception
|
*/
|
void readSystems(Integer uid, String ids) throws Exception;
|
|
|
/**
|
* 添加系统消息
|
* @param userId 接收用户id
|
* @param userType 接收用户类型
|
* @param title 标题
|
* @param content 消息内容
|
* @throws Exception
|
*/
|
void addSystemMessage(Integer userId, Integer userType, String title, String content) throws Exception;
|
|
|
/**
|
* 清空系统消息
|
* @param userId
|
*/
|
void clearSystemMessage(Integer userId) throws Exception;
|
}
|