|  |  |  | 
|---|
|  |  |  | 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; | 
|---|
|  |  |  | 
|---|
|  |  |  | public class ArdCallHistoryController extends BaseController { | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private IArdCallHistoryService ardCallHistoryService; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private IArdCallUnreadMessagesService ardCallUnreadMessagesService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 查询会话消息列表 | 
|---|
|  |  |  | 
|---|
|  |  |  | 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)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|