Commit 50cdf977 by zhiwj

发布更新加上原因

parent 2722d36c
...@@ -24,7 +24,7 @@ public class IndexGroupController { ...@@ -24,7 +24,7 @@ public class IndexGroupController {
@Autowired @Autowired
private IndexGroupApiService indexGroupApiService; private IndexGroupApiService indexGroupApiService;
@RequestMapping("/saveIndexGroup") @RequestMapping("/save-index-group")
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("/updateIndexGroup") @RequestMapping("/update-index-group")
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("/treeIndexGroup") @RequestMapping("/tree-index-group")
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("/deleteIndexGroup") @RequestMapping("/delete-index-group")
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment