mirror of
https://gitcode.com/ageerle/ruoyi-ai.git
synced 2026-04-16 05:13:41 +00:00
feat: 新增聊天时返回消息id
This commit is contained in:
@@ -75,8 +75,9 @@ public class ChatMessageController extends BaseController {
|
|||||||
@Log(title = "聊天消息", businessType = BusinessType.INSERT)
|
@Log(title = "聊天消息", businessType = BusinessType.INSERT)
|
||||||
@RepeatSubmit()
|
@RepeatSubmit()
|
||||||
@PostMapping()
|
@PostMapping()
|
||||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody ChatMessageBo bo) {
|
public R<Long> add(@Validated(AddGroup.class) @RequestBody ChatMessageBo bo) {
|
||||||
return toAjax(chatMessageService.insertByBo(bo));
|
chatMessageService.insertByBo(bo);
|
||||||
|
return R.ok(bo.getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user