|
@@ -1,4 +1,4 @@
|
|
|
-package com.css.simulation.resource.algorithm.ctrl;
|
|
|
+package com.css.simulation.resource.algorithm.controller;
|
|
|
|
|
|
|
|
|
import api.common.pojo.common.ResponseBodyVO;
|
|
@@ -19,10 +19,18 @@ import java.util.Map;
|
|
|
*/
|
|
|
@Controller
|
|
|
@RequestMapping(value = "/algorithm",name = LogConstants.MODULE_ALGORITH)
|
|
|
-public class AlgorithmCtrl {
|
|
|
+public class AlgorithmController {
|
|
|
|
|
|
@Resource
|
|
|
- private AlgorithmService service;
|
|
|
+ private AlgorithmService algorithmService;
|
|
|
+
|
|
|
+ //* -------------------------------- Comm删除算法ent --------------------------------
|
|
|
+ @RequestMapping("deleteByid")
|
|
|
+ @ResponseBody
|
|
|
+ public ResponseBodyVO<String> deleteById(@RequestBody AlgorithmParameter param){
|
|
|
+ return algorithmService.deleteById(param);
|
|
|
+ }
|
|
|
+ //* -------------------------------- Comment --------------------------------
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -31,7 +39,7 @@ public class AlgorithmCtrl {
|
|
|
@RequestMapping("addOrUpdate")
|
|
|
@ResponseBody
|
|
|
public ResponseBodyVO addOrUpdate(@RequestBody AlgorithmParameter param) throws IOException {
|
|
|
- return service.addOrUpdate(param);
|
|
|
+ return algorithmService.addOrUpdate(param);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -43,7 +51,7 @@ public class AlgorithmCtrl {
|
|
|
@RequestMapping("selectAlgorithmList")
|
|
|
@ResponseBody
|
|
|
public ResponseBodyVO selectAlgorithmList(@RequestBody AlgorithmParameter param){
|
|
|
- return service.selectAlgorithmList(param);
|
|
|
+ return algorithmService.selectAlgorithmList(param);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -54,7 +62,7 @@ public class AlgorithmCtrl {
|
|
|
@RequestMapping("selectAlgoPlatformList")
|
|
|
@ResponseBody
|
|
|
public ResponseBodyVO selectAlgoPlatformList(@RequestBody AlgorithmParameter param){
|
|
|
- return service.selectAlgoPlatformList(param);
|
|
|
+ return algorithmService.selectAlgoPlatformList(param);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -66,18 +74,9 @@ public class AlgorithmCtrl {
|
|
|
@RequestMapping("selectSharedAlgorithmList")
|
|
|
@ResponseBody
|
|
|
public ResponseBodyVO selectSharedAlgorithmList(@RequestBody AlgorithmParameter param){
|
|
|
- return service.selectSharedAlgorithmList(param);
|
|
|
+ return algorithmService.selectSharedAlgorithmList(param);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 删除算法
|
|
|
- * @return
|
|
|
- */
|
|
|
- @RequestMapping("deleteByid")
|
|
|
- @ResponseBody
|
|
|
- public ResponseBodyVO<String> deleteById(@RequestBody AlgorithmParameter param){
|
|
|
- return service.deleteById(param);
|
|
|
- }
|
|
|
|
|
|
/**
|
|
|
* 删除算法前校验
|
|
@@ -85,7 +84,7 @@ public class AlgorithmCtrl {
|
|
|
@RequestMapping("deleteCheck")
|
|
|
@ResponseBody
|
|
|
public ResponseBodyVO<Map<String,String>> deleteCheck(@RequestBody AlgorithmParameter param){
|
|
|
- return service.deleteCheck(param);
|
|
|
+ return algorithmService.deleteCheck(param);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -96,7 +95,7 @@ public class AlgorithmCtrl {
|
|
|
@RequestMapping("shareAlgorithm")
|
|
|
@ResponseBody
|
|
|
public ResponseBodyVO shareAlgorithm(@RequestBody AlgorithmParameter param){
|
|
|
- return service.shareAlgorithm(param);
|
|
|
+ return algorithmService.shareAlgorithm(param);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -109,7 +108,7 @@ public class AlgorithmCtrl {
|
|
|
@ResponseBody
|
|
|
public ResponseBodyVO selectDetailsById(@RequestBody AlgorithmParameter param){
|
|
|
String algorithmId = param.getId();
|
|
|
- return service.selectDetailsById(algorithmId);
|
|
|
+ return algorithmService.selectDetailsById(algorithmId);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -118,7 +117,7 @@ public class AlgorithmCtrl {
|
|
|
@RequestMapping("testConnection")
|
|
|
@ResponseBody
|
|
|
public ResponseBodyVO<String> testConnection(@RequestBody AlgorithmParameter param){
|
|
|
- return service.testConnection(param);
|
|
|
+ return algorithmService.testConnection(param);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -128,7 +127,7 @@ public class AlgorithmCtrl {
|
|
|
@ResponseBody
|
|
|
public ResponseBodyVO<String> getGitVersion(@RequestBody AlgorithmParameter param) {
|
|
|
String id = param.getId();
|
|
|
- String gitVersion = service.getGitVersion(id);
|
|
|
+ String gitVersion = algorithmService.getGitVersion(id);
|
|
|
return new ResponseBodyVO<>(ResponseBodyVO.Response.SUCCESS,"请求成功。", gitVersion);
|
|
|
}
|
|
|
|