liusuyi
2024-07-23 811b14aa5cd2bd6d4313b43dc38ce87cd938f3b0
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));
    }
}