mirror of
https://gitcode.com/ageerle/ruoyi-ai.git
synced 2026-03-31 13:33:42 +08:00
feat: 新增会话返回会话id
This commit is contained in:
@@ -49,7 +49,7 @@ server:
|
||||
# 日志配置
|
||||
logging:
|
||||
level:
|
||||
org.dromara: @logging.level@
|
||||
org.ruoyi: @logging.level@
|
||||
org.springframework: warn
|
||||
org.mybatis.spring.mapper: error
|
||||
org.apache.fury: warn
|
||||
|
||||
@@ -82,8 +82,10 @@ public class ChatSessionController extends BaseController {
|
||||
@Log(title = "会话管理", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping()
|
||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody ChatSessionBo bo) {
|
||||
return toAjax(chatSessionService.insertByBo(bo));
|
||||
public R<Long> add(@Validated(AddGroup.class) @RequestBody ChatSessionBo bo) {
|
||||
chatSessionService.insertByBo(bo);
|
||||
// 返回会话id
|
||||
return R.ok(bo.getId());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -285,8 +285,8 @@ public class VelocityUtils {
|
||||
} else if (!column.isSuperColumn() && GenConstants.TYPE_BIGDECIMAL.equals(column.getJavaType())) {
|
||||
importList.add("java.math.BigDecimal");
|
||||
} else if (!column.isSuperColumn() && "imageUpload".equals(column.getHtmlType())) {
|
||||
importList.add("org.dromara.common.translation.annotation.Translation");
|
||||
importList.add("org.dromara.common.translation.constant.TransConstant");
|
||||
importList.add("org.ruoyi.common.translation.annotation.Translation");
|
||||
importList.add("org.ruoyi.common.translation.constant.TransConstant");
|
||||
}
|
||||
}
|
||||
return importList;
|
||||
|
||||
Reference in New Issue
Block a user