feat: 新增聊天时返回消息id

This commit is contained in:
ageerle
2025-05-22 17:24:56 +08:00
parent 8fb72ba4fe
commit 5517a5d19b

View File

@@ -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());
}
/**