Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-data-cloud
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-data-cloud
Commits
50cdf977
Commit
50cdf977
authored
Jul 16, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发布更新加上原因
parent
2722d36c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
IndexGroupController.java
.../cloud/operation/web/controller/IndexGroupController.java
+4
-4
No files found.
gic-data-cloud-operation-web/src/main/java/com/gic/cloud/operation/web/controller/IndexGroupController.java
View file @
50cdf977
...
@@ -24,7 +24,7 @@ public class IndexGroupController {
...
@@ -24,7 +24,7 @@ public class IndexGroupController {
@Autowired
@Autowired
private
IndexGroupApiService
indexGroupApiService
;
private
IndexGroupApiService
indexGroupApiService
;
@RequestMapping
(
"/save
IndexG
roup"
)
@RequestMapping
(
"/save
-index-g
roup"
)
public
RestResponse
saveIndexGroup
(
IndexGroupDTO
indexGroupDTO
)
{
public
RestResponse
saveIndexGroup
(
IndexGroupDTO
indexGroupDTO
)
{
if
(
StringUtils
.
isBlank
(
indexGroupDTO
.
getIndexGroupName
())
||
indexGroupDTO
.
getParentId
()
==
null
)
{
if
(
StringUtils
.
isBlank
(
indexGroupDTO
.
getIndexGroupName
())
||
indexGroupDTO
.
getParentId
()
==
null
)
{
return
RestResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
ErrorCode
.
PARAMETER_ERROR
.
getMsg
());
return
RestResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
ErrorCode
.
PARAMETER_ERROR
.
getMsg
());
...
@@ -33,7 +33,7 @@ public class IndexGroupController {
...
@@ -33,7 +33,7 @@ public class IndexGroupController {
return
ResultControllerUtils
.
commonResult
(
serviceResponse
);
return
ResultControllerUtils
.
commonResult
(
serviceResponse
);
}
}
@RequestMapping
(
"/update
IndexG
roup"
)
@RequestMapping
(
"/update
-index-g
roup"
)
public
RestResponse
updateIndexGroup
(
IndexGroupDTO
indexGroupDTO
)
{
public
RestResponse
updateIndexGroup
(
IndexGroupDTO
indexGroupDTO
)
{
if
(
StringUtils
.
isBlank
(
indexGroupDTO
.
getIndexGroupName
())
||
indexGroupDTO
.
getParentId
()
==
null
)
{
if
(
StringUtils
.
isBlank
(
indexGroupDTO
.
getIndexGroupName
())
||
indexGroupDTO
.
getParentId
()
==
null
)
{
return
RestResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
ErrorCode
.
PARAMETER_ERROR
.
getMsg
());
return
RestResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
ErrorCode
.
PARAMETER_ERROR
.
getMsg
());
...
@@ -42,13 +42,13 @@ public class IndexGroupController {
...
@@ -42,13 +42,13 @@ public class IndexGroupController {
return
ResultControllerUtils
.
commonResult
(
serviceResponse
);
return
ResultControllerUtils
.
commonResult
(
serviceResponse
);
}
}
@RequestMapping
(
"/tree
IndexG
roup"
)
@RequestMapping
(
"/tree
-index-g
roup"
)
public
RestResponse
tree
()
{
public
RestResponse
tree
()
{
ServiceResponse
<
List
<
IndexGroupDTO
>>
serviceResponse
=
indexGroupApiService
.
tree
();
ServiceResponse
<
List
<
IndexGroupDTO
>>
serviceResponse
=
indexGroupApiService
.
tree
();
return
ResultControllerUtils
.
commonResult
(
serviceResponse
);
return
ResultControllerUtils
.
commonResult
(
serviceResponse
);
}
}
@RequestMapping
(
"/delete
IndexG
roup"
)
@RequestMapping
(
"/delete
-index-g
roup"
)
public
RestResponse
tree
(
Integer
indexGroupId
)
{
public
RestResponse
tree
(
Integer
indexGroupId
)
{
ServiceResponse
<
Void
>
serviceResponse
=
indexGroupApiService
.
delete
(
indexGroupId
);
ServiceResponse
<
Void
>
serviceResponse
=
indexGroupApiService
.
delete
(
indexGroupId
);
return
ResultControllerUtils
.
commonResult
(
serviceResponse
);
return
ResultControllerUtils
.
commonResult
(
serviceResponse
);
...
...
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