| @@ -42,6 +42,11 @@ public class AutoMLController extends BaseController { | |||||
| public GenericsAjaxResult<String> editAutoMl(@RequestBody AutoMl autoMl) throws Exception { | public GenericsAjaxResult<String> editAutoMl(@RequestBody AutoMl autoMl) throws Exception { | ||||
| return genericsSuccess(this.autoMLService.edit(autoMl)); | return genericsSuccess(this.autoMLService.edit(autoMl)); | ||||
| } | } | ||||
| @GetMapping("/getAutoMlDetail") | |||||
| @ApiOperation("获取自动机器学习详细信息") | |||||
| public GenericsAjaxResult<AutoMl> getAutoMlDetail(@RequestParam("id") Long id){ | |||||
| return genericsSuccess(this.autoMLService.getAutoMlDetail(id)); | |||||
| } | |||||
| @DeleteMapping("{id}") | @DeleteMapping("{id}") | ||||
| @ApiOperation("删除自动机器学习") | @ApiOperation("删除自动机器学习") | ||||
| @@ -16,6 +16,8 @@ public interface AutoMLService { | |||||
| String delete(Long id); | String delete(Long id); | ||||
| AutoMl getAutoMlDetail(Long id); | |||||
| Map<String, String> upload(MultipartFile file, String uuid) throws Exception; | Map<String, String> upload(MultipartFile file, String uuid) throws Exception; | ||||
| String runAutoMlIns(Long id) throws Exception; | String runAutoMlIns(Long id) throws Exception; | ||||
| @@ -115,6 +115,11 @@ public class AutoMLServiceImpl implements AutoMLService { | |||||
| return autoMLDao.edit(autoMl) > 0 ? "删除成功" : "删除失败"; | return autoMLDao.edit(autoMl) > 0 ? "删除成功" : "删除失败"; | ||||
| } | } | ||||
| @Override | |||||
| public AutoMl getAutoMlDetail(Long id) { | |||||
| return autoMLDao.getAutoMlById(id); | |||||
| } | |||||
| @Override | @Override | ||||
| public Map<String, String> upload(MultipartFile file, String uuid) throws Exception { | public Map<String, String> upload(MultipartFile file, String uuid) throws Exception { | ||||
| Map<String, String> result = new HashMap<>(); | Map<String, String> result = new HashMap<>(); | ||||