@Service(value="customerCommService") public class CustomerCommServiceImpl extends Object implements ICustomerCommService
Constructor and Description |
---|
CustomerCommServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
catService(Chat chat)
断开连接,还未评论。
|
void |
endChat(Chat chat,
double score)
用户进行评分,并结束掉此会话!!
|
List<ChatMessage> |
getMsgList(Chat chat)
获取所有聊天记录
|
ChatMessage |
getNewMessage(Chat chat)
获取未读聊天记录
|
Chat |
requestService(User user)
请求服务
|
void |
sendMessage(Chat chat,
ChatMessage newMsg)
发送一条消息给客服
|
public Chat requestService(User user) throws Exception
ICustomerCommService
requestService
in interface ICustomerCommService
Exception
public List<ChatMessage> getMsgList(Chat chat) throws Exception
getMsgList
in interface ICustomerCommService
chat
- 聊天会话对象Exception
public ChatMessage getNewMessage(Chat chat) throws Exception
getNewMessage
in interface ICustomerCommService
chat
- 聊天会话对象Exception
public void sendMessage(Chat chat, ChatMessage newMsg) throws Exception
sendMessage
in interface ICustomerCommService
chat
- newMsg
- Exception
public void catService(Chat chat) throws Exception
catService
in interface ICustomerCommService
chat
- Exception
public void endChat(Chat chat, double score) throws Exception
endChat
in interface ICustomerCommService
chat
- score
- Exception
Copyright © 2019. All rights reserved.