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
a549be6d
Commit
a549be6d
authored
Jan 07, 2026
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:Ai软著
parent
97a50a03
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
50 deletions
+18
-50
CallbackDto.java
...ava/cn/com/poc/ai_software_copyright/dto/CallbackDto.java
+5
-47
BizSoftwareCopyrightRest.java
.../ai_software_copyright/rest/BizSoftwareCopyrightRest.java
+3
-1
BizSoftwareCopyrightRestImpl.java
...are_copyright/rest/impl/BizSoftwareCopyrightRestImpl.java
+10
-2
No files found.
src/main/java/cn/com/poc/ai_software_copyright/dto/CallbackDto.java
View file @
a549be6d
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
*/
*/
public
class
CallbackDto
{
public
class
CallbackDto
{
private
String
taskId
;
private
Object
result
;
private
String
status
;
private
String
demand
;
private
Object
ui
;
private
Object
structure
;
public
String
getTaskId
()
{
return
taskId
;
}
public
void
setTaskId
(
String
taskId
)
{
this
.
taskId
=
taskId
;
}
public
String
getStatus
()
{
return
status
;
}
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
public
String
getDemand
()
{
return
demand
;
}
public
void
setDemand
(
String
demand
)
{
this
.
demand
=
demand
;
}
public
Object
getUi
()
{
return
ui
;
}
public
void
setUi
(
Object
ui
)
{
this
.
ui
=
ui
;
}
public
Object
get
Structure
()
{
public
Object
get
Result
()
{
return
structure
;
return
result
;
}
}
public
void
set
Structure
(
Object
structure
)
{
public
void
set
Result
(
Object
result
)
{
this
.
structure
=
structure
;
this
.
result
=
result
;
}
}
}
}
src/main/java/cn/com/poc/ai_software_copyright/rest/BizSoftwareCopyrightRest.java
View file @
a549be6d
...
@@ -61,5 +61,7 @@ public interface BizSoftwareCopyrightRest extends BaseRest {
...
@@ -61,5 +61,7 @@ public interface BizSoftwareCopyrightRest extends BaseRest {
/**
/**
* 回调-生成基础文件任务
* 回调-生成基础文件任务
*/
*/
void
callbackGeneratedBaseDoc
(
@RequestParam
String
taskId
,
@RequestBody
CallbackDto
callbackDto
);
void
callbackGeneratedBaseDoc
(
@RequestParam
String
taskId
,
@RequestParam
String
type
,
@RequestBody
CallbackDto
callbackDto
);
}
}
\ No newline at end of file
src/main/java/cn/com/poc/ai_software_copyright/rest/impl/BizSoftwareCopyrightRestImpl.java
View file @
a549be6d
...
@@ -111,9 +111,17 @@ public class BizSoftwareCopyrightRestImpl implements BizSoftwareCopyrightRest {
...
@@ -111,9 +111,17 @@ public class BizSoftwareCopyrightRestImpl implements BizSoftwareCopyrightRest {
private
RedisService
redisService
;
private
RedisService
redisService
;
@Override
@Override
public
void
callbackGeneratedBaseDoc
(
String
taskId
,
CallbackDto
callbackDto
)
{
public
void
callbackGeneratedBaseDoc
(
String
taskId
,
String
type
,
CallbackDto
callbackDto
)
{
if
(
redisService
.
hasKey
(
taskId
))
{
if
(
redisService
.
hasKey
(
taskId
))
{
redisService
.
set
(
taskId
,
JsonUtils
.
serialize
(
callbackDto
));
if
(
type
.
equals
(
"success"
))
{
redisService
.
set
(
taskId
,
type
);
}
else
if
(
type
.
equals
(
"error"
))
{
redisService
.
set
(
taskId
,
type
);
}
else
{
redisService
.
set
(
taskId
+
":"
+
type
,
JsonUtils
.
serialize
(
callbackDto
));
}
}
}
}
}
}
}
\ 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