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
1
Merge Requests
1
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
1106e8a7
Commit
1106e8a7
authored
Jan 05, 2026
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:Ai软著
parent
b11b1c15
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
CallbackDto.java
...ava/cn/com/poc/ai_software_copyright/dto/CallbackDto.java
+5
-3
BizSoftwareCopyrightRestImpl.java
...are_copyright/rest/impl/BizSoftwareCopyrightRestImpl.java
+3
-2
No files found.
src/main/java/cn/com/poc/ai_software_copyright/dto/CallbackDto.java
View file @
1106e8a7
package
cn
.
com
.
poc
.
ai_software_copyright
.
dto
;
package
cn
.
com
.
poc
.
ai_software_copyright
.
dto
;
import
java.util.Map
;
/**
/**
* @author alex.yao
* @author alex.yao
* @date 2026/1/5
* @date 2026/1/5
...
@@ -8,7 +10,7 @@ public class CallbackDto {
...
@@ -8,7 +10,7 @@ public class CallbackDto {
private
String
taskId
;
private
String
taskId
;
private
String
result
;
private
Map
<
String
,
Object
>
result
;
public
String
getTaskId
()
{
public
String
getTaskId
()
{
return
taskId
;
return
taskId
;
...
@@ -18,11 +20,11 @@ public class CallbackDto {
...
@@ -18,11 +20,11 @@ public class CallbackDto {
this
.
taskId
=
taskId
;
this
.
taskId
=
taskId
;
}
}
public
String
getResult
()
{
public
Map
<
String
,
Object
>
getResult
()
{
return
result
;
return
result
;
}
}
public
void
setResult
(
String
result
)
{
public
void
setResult
(
Map
<
String
,
Object
>
result
)
{
this
.
result
=
result
;
this
.
result
=
result
;
}
}
}
}
src/main/java/cn/com/poc/ai_software_copyright/rest/impl/BizSoftwareCopyrightRestImpl.java
View file @
1106e8a7
...
@@ -112,8 +112,9 @@ public class BizSoftwareCopyrightRestImpl implements BizSoftwareCopyrightRest {
...
@@ -112,8 +112,9 @@ public class BizSoftwareCopyrightRestImpl implements BizSoftwareCopyrightRest {
@Override
@Override
public
void
callbackGeneratedBaseDoc
(
CallbackDto
callbackDto
)
throws
Exception
{
public
void
callbackGeneratedBaseDoc
(
CallbackDto
callbackDto
)
throws
Exception
{
String
pri
=
"CALL_BACK:"
;
String
taskId
=
callbackDto
.
getTaskId
();
String
taskId
=
callbackDto
.
getTaskId
();
redisService
.
set
(
pri
+
taskId
,
JsonUtils
.
serialize
(
callbackDto
));
if
(
redisService
.
hasKey
(
taskId
))
{
redisService
.
set
(
taskId
,
JsonUtils
.
serialize
(
callbackDto
.
getResult
()));
}
}
}
}
}
\ No newline at end of file
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