调整 controller url
This commit is contained in:
parent
5d6a3ff0b4
commit
83d17051be
|
@ -37,20 +37,20 @@ public class ChatConversationController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Operation(summary = "获取 - 获取对话")
|
@Operation(summary = "获取 - 获取对话")
|
||||||
@GetMapping("/getConversation")
|
@GetMapping("/{id}")
|
||||||
public CommonResult<ChatConversationRes> getConversation(@RequestParam("id") Long id) {
|
public CommonResult<ChatConversationRes> getConversation(@PathVariable("id") Long id) {
|
||||||
return CommonResult.success(chatConversationService.getConversation(id));
|
return CommonResult.success(chatConversationService.getConversation(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Operation(summary = "获取 - 获取对话list")
|
@Operation(summary = "获取 - 获取对话list")
|
||||||
@GetMapping("/listConversation")
|
@GetMapping("/list")
|
||||||
public CommonResult<List<ChatConversationRes>> listConversation(@ModelAttribute @Validated ChatConversationListReq req) {
|
public CommonResult<List<ChatConversationRes>> listConversation(@ModelAttribute @Validated ChatConversationListReq req) {
|
||||||
return CommonResult.success(chatConversationService.listConversation(req));
|
return CommonResult.success(chatConversationService.listConversation(req));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Operation(summary = "删除")
|
@Operation(summary = "删除")
|
||||||
@DeleteMapping("/listConversation")
|
@DeleteMapping("/{id}")
|
||||||
public CommonResult<Void> delete(@RequestParam("id") Long id) {
|
public CommonResult<Void> delete(@PathVariable("id") Long id) {
|
||||||
chatConversationService.delete(id);
|
chatConversationService.delete(id);
|
||||||
return CommonResult.success(null);
|
return CommonResult.success(null);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue