@Controller @RequestMapping(value="cilentservicer") public class CustomerControllerImpl extends Object implements ICustomerController
Constructor and Description |
---|
CustomerControllerImpl() |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<Object> |
catChat(javax.servlet.http.HttpSession httpSession)
断开连接
|
org.springframework.http.ResponseEntity<Object> |
endChat(javax.servlet.http.HttpSession httpSession,
double score)
发送评分,结束会话
|
org.springframework.http.ResponseEntity<Object> |
getALlChated(javax.servlet.http.HttpSession httpSession)
从数据库获取所有的服务记录
|
org.springframework.http.ResponseEntity<Object> |
getAllChatMsg(javax.servlet.http.HttpSession httpSession)
获取所有消息的聊天记录
|
org.springframework.http.ResponseEntity<Object> |
getNewMsg(javax.servlet.http.HttpSession httpSession)
获取一条新消息
|
org.springframework.http.ResponseEntity<Object> |
isHaveNewMsg(javax.servlet.http.HttpSession session)
心跳包,查看是否有新消息
|
org.springframework.http.ResponseEntity<Object> |
requestServicer(javax.servlet.http.HttpSession httpSession)
请求一个客服
|
org.springframework.http.ResponseEntity<Object> |
sendMsg(javax.servlet.http.HttpSession httpSession,
ChatMessage chatMessage)
发送一条消息
|
@RequestMapping(value="chateds") public org.springframework.http.ResponseEntity<Object> getALlChated(javax.servlet.http.HttpSession httpSession)
getALlChated
in interface ICustomerController
httpSession
- @RequestMapping(value="call") public org.springframework.http.ResponseEntity<Object> isHaveNewMsg(javax.servlet.http.HttpSession session)
isHaveNewMsg
in interface ICustomerController
session
- @RequestMapping(value="reqService") public org.springframework.http.ResponseEntity<Object> requestServicer(javax.servlet.http.HttpSession httpSession)
requestServicer
in interface ICustomerController
httpSession
- @RequestMapping(value="msgList", method=GET) public org.springframework.http.ResponseEntity<Object> getAllChatMsg(javax.servlet.http.HttpSession httpSession)
getAllChatMsg
in interface ICustomerController
httpSession
- @RequestMapping(value="newMsg") public org.springframework.http.ResponseEntity<Object> getNewMsg(javax.servlet.http.HttpSession httpSession)
getNewMsg
in interface ICustomerController
httpSession
- @RequestMapping(value="msg", method=POST) public org.springframework.http.ResponseEntity<Object> sendMsg(javax.servlet.http.HttpSession httpSession, @RequestBody ChatMessage chatMessage)
sendMsg
in interface ICustomerController
httpSession
- chatMessage
- json数据@RequestMapping(value="chat", method=PUT) public org.springframework.http.ResponseEntity<Object> catChat(javax.servlet.http.HttpSession httpSession)
catChat
in interface ICustomerController
httpSession
- @RequestMapping(value="chat", method=DELETE) public org.springframework.http.ResponseEntity<Object> endChat(javax.servlet.http.HttpSession httpSession, double score)
endChat
in interface ICustomerController
httpSession
- score
- Copyright © 2019. All rights reserved.