Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-enterprise-base
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
base_platform_enterprise
gic-enterprise-base
Commits
9982e807
Commit
9982e807
authored
Jan 11, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志工具类调整
parent
0fd3170a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
OperationResultUtils.java
...ain/java/com/gic/download/utils/OperationResultUtils.java
+10
-0
No files found.
gic-enterprise-download/src/main/java/com/gic/download/utils/OperationResultUtils.java
View file @
9982e807
...
@@ -34,4 +34,14 @@ public class OperationResultUtils {
...
@@ -34,4 +34,14 @@ public class OperationResultUtils {
public
static
String
getOperationObject
(
ServiceResponse
<
String
>
result
)
{
public
static
String
getOperationObject
(
ServiceResponse
<
String
>
result
)
{
return
result
.
isSuccess
()
?
result
.
getResult
()
:
null
;
return
result
.
isSuccess
()
?
result
.
getResult
()
:
null
;
}
}
public
static
RestResponse
operationResult
(
ServiceResponse
response
,
String
content
)
{
if
(
response
.
isSuccess
())
{
String
operationObject
=
(
String
)
response
.
getResult
();
LogUtils
.
createLog
(
content
,
operationObject
);
return
RestResponse
.
success
(
response
.
getResult
());
}
else
{
return
RestResponse
.
failure
(
response
.
getCode
(),
response
.
getMessage
());
}
}
}
}
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