mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-27 01:32:03 +08:00
调整 controller url
This commit is contained in:
parent
5d6a3ff0b4
commit
83d17051be
@ -37,20 +37,20 @@ public class ChatConversationController {
|
||||
}
|
||||
|
||||
@Operation(summary = "获取 - 获取对话")
|
||||
@GetMapping("/getConversation")
|
||||
public CommonResult<ChatConversationRes> getConversation(@RequestParam("id") Long id) {
|
||||
@GetMapping("/{id}")
|
||||
public CommonResult<ChatConversationRes> getConversation(@PathVariable("id") Long id) {
|
||||
return CommonResult.success(chatConversationService.getConversation(id));
|
||||
}
|
||||
|
||||
@Operation(summary = "获取 - 获取对话list")
|
||||
@GetMapping("/listConversation")
|
||||
@GetMapping("/list")
|
||||
public CommonResult<List<ChatConversationRes>> listConversation(@ModelAttribute @Validated ChatConversationListReq req) {
|
||||
return CommonResult.success(chatConversationService.listConversation(req));
|
||||
}
|
||||
|
||||
@Operation(summary = "删除")
|
||||
@DeleteMapping("/listConversation")
|
||||
public CommonResult<Void> delete(@RequestParam("id") Long id) {
|
||||
@DeleteMapping("/{id}")
|
||||
public CommonResult<Void> delete(@PathVariable("id") Long id) {
|
||||
chatConversationService.delete(id);
|
||||
return CommonResult.success(null);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user