mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-29 13:34:40 +08:00
(fix)(chat)Return chat id when creating new one.
This commit is contained in:
@@ -22,11 +22,10 @@ public class ChatController {
|
||||
private ChatManageService chatService;
|
||||
|
||||
@PostMapping("/save")
|
||||
public Boolean save(@RequestParam(value = "chatName") String chatName,
|
||||
public Long save(@RequestParam(value = "chatName") String chatName,
|
||||
@RequestParam(value = "agentId", required = false) Integer agentId,
|
||||
HttpServletRequest request, HttpServletResponse response) {
|
||||
chatService.addChat(UserHolder.findUser(request, response), chatName, agentId);
|
||||
return true;
|
||||
return chatService.addChat(UserHolder.findUser(request, response), chatName, agentId);
|
||||
}
|
||||
|
||||
@GetMapping("/getAll")
|
||||
|
||||
Reference in New Issue
Block a user