...
|
...
|
@@ -32,9 +32,6 @@ public class TypeInfoCtrl { |
|
|
|
|
|
@RequestMapping(value = "/query", method = RequestMethod.GET)
|
|
|
public BaseResponse queryTypeInfo() {
|
|
|
|
|
|
DEBUG.debug("Query all typeInfo...");
|
|
|
|
|
|
List<TypeInfo> allTypeInfo = null;
|
|
|
|
|
|
BaseResponse response = new BaseResponse();
|
...
|
...
|
@@ -43,15 +40,11 @@ public class TypeInfoCtrl { |
|
|
allTypeInfo = typeInfoService.queryAllTypesInfo();
|
|
|
|
|
|
if (null != allTypeInfo) {
|
|
|
|
|
|
response.setData(allTypeInfo);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
DEBUG.error("Failed to query all typeInfo, error: {}", e);
|
|
|
|
|
|
response.setCode(400);
|
|
|
|
|
|
response.setMessage(e.getMessage());
|
|
|
}
|
|
|
|
...
|
...
|
@@ -160,9 +153,6 @@ public class TypeInfoCtrl { |
|
|
|
|
|
@RequestMapping(value = "/add", method = RequestMethod.POST)
|
|
|
public BaseResponse addTypeInfo(@RequestBody TypeInfo request) {
|
|
|
|
|
|
DEBUG.debug("Add typeInfo: {}", request);
|
|
|
|
|
|
BaseResponse response = new BaseResponse();
|
|
|
|
|
|
try {
|
...
|
...
|
|