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