Commit 64580acb authored by R10's avatar R10

历史记录重写接口

parent b5aa0712
......@@ -18,7 +18,9 @@ public enum AiDialoguesTypeEnum {
LEGAL_AFFAIRS("legal_affairs", "法务问答"),
AI_LEGAL_DOCUMENT_WRITING("ai_legal_document_writing", "法律文书写作"),
AI_LEGAL_DOCUMENT_WRITING("ai_legal_document_writing", "法律文书ai写作"),
TEMPLATE_LEGAL_DOCUMENT_WRITING("template_legal_document_writing", "法律文书模板写作"),
TRAVEL_BUSINESS("travel_business", "旅游业务"),
......
......@@ -5,7 +5,12 @@ SELECT
member_id,
is_deleted,
title,
file_url
file_url,
CREATOR,
CREATED_TIME,
MODIFIER,
MODIFIED_TIME,
SYS_VERSION
FROM
biz_ai_dialogues
WHERE 1=1
......
......@@ -28,5 +28,10 @@ public interface LegalRest extends BaseRest {
*/
void call(@RequestBody AiLawDialoguesDto dto) throws Exception;
/**
* templateAi对话
*/
void templateCall(@RequestBody AiLawDialoguesDto dto) throws Exception;
}
......@@ -58,4 +58,18 @@ public class LegalRestImpl implements LegalRest {
aiLawService.call(dto.getDialoguesId(), dto.getInput(), dto.getEnableSearchEngine(), dto.getEnableDeepThinking(), dto.getFileUrl(), dto.getKnowledgeIds(), dto.getDatabaseIds(), userBaseEntity.getUserId());
}
/**
* templateAi对话
*
* @param dto
*/
@Override
public void templateCall(AiLawDialoguesDto dto) throws Exception {
UserBaseEntity userBaseEntity = BlContext.getCurrentUserNotException();
if (userBaseEntity == null) {
throw new BusinessException("用户未登录");
}
aiLawService.templateCall(dto.getDialoguesId(), dto.getInput(), dto.getFileUrl(), userBaseEntity.getUserId());
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment