From f111878e10fbbe312a17685756240bcb52be81a9 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期五, 04 八月 2023 12:13:42 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
cloud-server-management/src/main/java/com/dsh/course/service/ISystemNoticeService.java | 65 ++++++++++++++++++++++++++++++++
1 files changed, 65 insertions(+), 0 deletions(-)
diff --git a/cloud-server-management/src/main/java/com/dsh/course/service/ISystemNoticeService.java b/cloud-server-management/src/main/java/com/dsh/course/service/ISystemNoticeService.java
new file mode 100644
index 0000000..55c83b8
--- /dev/null
+++ b/cloud-server-management/src/main/java/com/dsh/course/service/ISystemNoticeService.java
@@ -0,0 +1,65 @@
+package com.dsh.course.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.dsh.course.entity.SystemNotice;
+
+import java.util.List;
+import java.util.Map;
+
+public interface ISystemNoticeService extends IService<SystemNotice> {
+
+
+ /**
+ * 添加系统消息
+ * @param userType
+ * @param content
+ * @param userId
+ * @throws Exception
+ */
+ void addSystemNotice(Integer userType, String content, Integer userId, Integer noticeType) throws Exception;
+
+
+ /**
+ * 获取未阅读数据
+ * @param uid
+ * @return
+ * @throws Exception
+ */
+ int queryNoReadNoticeNum(Integer uid, Integer userType) throws Exception;
+
+ /**
+ * 获取消息列列表
+ * @param type
+ * @param pageNum
+ * @param size
+ * @param uid
+ * @return
+ */
+ List<Map<String, Object>> queryList(Integer type, Integer pageNum, Integer size, Integer uid, Integer userType,Integer lanugage);
+
+
+ /**
+ * 阅读操作
+ * @param id
+ * @param uid
+ * @throws Exception
+ */
+ void readSystemNotice(Integer id, Integer uid, Integer userType) throws Exception;
+
+
+ /**
+ * 删除公告或消息
+ * @param id
+ * @param uid
+ * @throws Exception
+ */
+ void delSystemNotice(Integer id, Integer uid, Integer userType) throws Exception;
+
+
+ /**
+ * 清空公告或消息
+ * @param uid
+ * @throws Exception
+ */
+ void clearSystemNotice(Integer uid, Integer userType) throws Exception;
+}
--
Gitblit v1.7.1