From 15c5686fd26706e78143b455e47782d52bd836e4 Mon Sep 17 00:00:00 2001
From: zhangnaisong <2434969829@qq.com>
Date: 星期三, 24 七月 2024 11:25:10 +0800
Subject: [PATCH] bug修改提交
---
ard-work/src/main/java/com/ruoyi/call/controller/ArdCallHistoryController.java | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/ard-work/src/main/java/com/ruoyi/call/controller/ArdCallHistoryController.java b/ard-work/src/main/java/com/ruoyi/call/controller/ArdCallHistoryController.java
index 9f38bea..a0779aa 100644
--- a/ard-work/src/main/java/com/ruoyi/call/controller/ArdCallHistoryController.java
+++ b/ard-work/src/main/java/com/ruoyi/call/controller/ArdCallHistoryController.java
@@ -4,6 +4,7 @@
import javax.servlet.http.HttpServletResponse;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
+import com.ruoyi.call.service.IArdCallUnreadMessagesService;
import com.ruoyi.common.annotation.Anonymous;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@@ -39,6 +40,8 @@
public class ArdCallHistoryController extends BaseController {
@Autowired
private IArdCallHistoryService ardCallHistoryService;
+ @Autowired
+ private IArdCallUnreadMessagesService ardCallUnreadMessagesService;
/**
* 鏌ヨ浼氳瘽娑堟伅鍒楄〃
@@ -85,4 +88,10 @@
public AjaxResult remove(@PathVariable String[] ids) {
return toAjax(ardCallHistoryService.deleteArdCallHistoryByIds(ids));
}
+
+ @ApiOperation("鑾峰彇鏈娑堟伅鎬绘暟")
+ @GetMapping("/getTotalUnreadCount")
+ public AjaxResult getTotalUnreadCount(String userId) {
+ return AjaxResult.success(ardCallUnreadMessagesService.totalUnReadCount(userId));
+ }
}
--
Gitblit v1.9.3