...
|
...
|
@@ -216,8 +216,6 @@ public class TypeInfoCtrl { |
|
|
@RequestMapping(value = "/update", method = RequestMethod.POST)
|
|
|
public BaseResponse updateMObject(@RequestBody TypeInfo request) {
|
|
|
|
|
|
DEBUG.debug("Update typeInfo: {}", request);
|
|
|
|
|
|
BaseResponse response = new BaseResponse();
|
|
|
|
|
|
try {
|
...
|
...
|
@@ -238,6 +236,23 @@ public class TypeInfoCtrl { |
|
|
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/updateTag", method = RequestMethod.POST)
|
|
|
public BaseResponse updateTag(@RequestBody TypeInfo request) {
|
|
|
BaseResponse response = new BaseResponse();
|
|
|
try {
|
|
|
if (null != request) {
|
|
|
typeInfoService.updateTypeInfoTag(request);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
DEBUG.error("Failed to update typeInfo: {}, error: {}", request, e);
|
|
|
response.setCode(400);
|
|
|
response.setMessage(e.getMessage());
|
|
|
}
|
|
|
|
|
|
return response;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/queryJavaApi", method = RequestMethod.GET)
|
|
|
public BaseResponse queryJavaApi() {
|
...
|
...
|
@@ -303,15 +318,9 @@ public class TypeInfoCtrl { |
|
|
|
|
|
@RequestMapping(value = "/queryZk", method = RequestMethod.GET)
|
|
|
public BaseResponse queryZkTree() {
|
|
|
|
|
|
DEBUG.debug("Query all queryZkTree...");
|
|
|
|
|
|
List<TypeInfo> allTypeInfo = null;
|
|
|
|
|
|
BaseResponse response = new BaseResponse();
|
|
|
|
|
|
int parentId=7;
|
|
|
|
|
|
try {
|
|
|
allTypeInfo = typeInfoService.getChildById();
|
|
|
|
...
|
...
|
|