Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-api
Commits
64580acb
Commit
64580acb
authored
Jul 31, 2025
by
R10
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
历史记录重写接口
parent
b5aa0712
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
2 deletions
+28
-2
AiDialoguesTypeEnum.java
...cn/com/poc/ai_dialogues/constant/AiDialoguesTypeEnum.java
+3
-1
AiDialoguesQuery.sql
...n/java/cn/com/poc/ai_dialogues/query/AiDialoguesQuery.sql
+6
-1
LegalRest.java
src/main/java/cn/com/poc/law/rest/LegalRest.java
+5
-0
LegalRestImpl.java
src/main/java/cn/com/poc/law/rest/impl/LegalRestImpl.java
+14
-0
No files found.
src/main/java/cn/com/poc/ai_dialogues/constant/AiDialoguesTypeEnum.java
View file @
64580acb
...
...
@@ -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"
,
"旅游业务"
),
...
...
src/main/java/cn/com/poc/ai_dialogues/query/AiDialoguesQuery.sql
View file @
64580acb
...
...
@@ -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
...
...
src/main/java/cn/com/poc/law/rest/LegalRest.java
View file @
64580acb
...
...
@@ -28,5 +28,10 @@ public interface LegalRest extends BaseRest {
*/
void
call
(
@RequestBody
AiLawDialoguesDto
dto
)
throws
Exception
;
/**
* templateAi对话
*/
void
templateCall
(
@RequestBody
AiLawDialoguesDto
dto
)
throws
Exception
;
}
src/main/java/cn/com/poc/law/rest/impl/LegalRestImpl.java
View file @
64580acb
...
...
@@ -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
());
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment