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