Commit db03a848 authored by zhaochengming's avatar zhaochengming

省测

parent f2cf3214
......@@ -45,12 +45,18 @@ public class OcpApiTreeController {
}
/**
* 服务树分类--新增---
*
* @param ocpApiGroup
* @return
*/
@PostMapping("/instertree")
@ApiOperation("服务树分类--新增")
public ResponseVO inseter(@RequestBody OcpApiGroup ocpApiGroup){
OcpApiGroup ocpApiGroup1 = service.insertTree(ocpApiGroup);
if (StringUtils.isBlank(ocpApiGroup1.getApiGroupCode())){
return ResponseVO.error("服务名称已经存在");
return ResponseVO.error("服务名称已经存在!");
}else {
return ResponseVO.ok(ocpApiGroup1);
}
......
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