Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
middleware-automatic
Overview
Overview
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
shenjunjie
middleware-automatic
Commits
edcc0980
Commit
edcc0980
authored
Jul 24, 2024
by
liuyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024/07/24 ai标注标签打印
parent
bdbb4502
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
18 deletions
+5
-18
middleware-automatic-center-client/src/main/java/com/zhiwei/middleware/automatic/server/pojo/AiApiResult.java
+5
-18
No files found.
middleware-automatic-center-client/src/main/java/com/zhiwei/middleware/automatic/server/pojo/AiApiResult.java
View file @
edcc0980
package
com
.
zhiwei
.
middleware
.
automatic
.
server
.
pojo
;
import
org.springframework.util.CollectionUtils
;
import
java.util.List
;
import
java.util.
Object
s
;
import
java.util.
stream.Collector
s
;
/**
* author:liu-yu
...
...
@@ -37,23 +39,8 @@ public class AiApiResult {
public
String
toString
()
{
StringBuilder
builder
=
new
StringBuilder
(
"AiApiResult{"
);
builder
.
append
(
"status='"
).
append
(
status
).
append
(
'\''
);
if
(
Objects
.
nonNull
(
info_class
))
{
builder
.
append
(
", info_class='"
).
append
(
info_class
).
append
(
'\''
);
}
if
(
Objects
.
nonNull
(
sent
))
{
builder
.
append
(
", sent='"
).
append
(
sent
).
append
(
'\''
);
}
if
(
Objects
.
nonNull
(
noise
))
{
builder
.
append
(
", noise='"
).
append
(
noise
).
append
(
'\''
);
}
if
(
Objects
.
nonNull
(
negLabel
))
{
builder
.
append
(
", negLabel='"
).
append
(
negLabel
).
append
(
'\''
);
}
if
(
Objects
.
nonNull
(
related
))
{
builder
.
append
(
", related='"
).
append
(
related
).
append
(
'\''
);
}
if
(
Objects
.
nonNull
(
sensitive
))
{
builder
.
append
(
", sensitive='"
).
append
(
sensitive
).
append
(
'\''
);
if
(!
CollectionUtils
.
isEmpty
(
tagList
))
{
builder
.
append
(
", aiTag='"
).
append
(
tagList
.
stream
().
map
(
e
->
" "
+
e
.
getName
()
+
":"
+
e
.
getValue
()).
collect
(
Collectors
.
joining
())).
append
(
'\''
);
}
builder
.
append
(
"}"
);
return
builder
.
toString
();
...
...
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