|
|
|
@@ -0,0 +1,35 @@ |
|
|
|
package com.ruoyi.platform.controller.autoML; |
|
|
|
|
|
|
|
import com.ruoyi.common.core.web.controller.BaseController; |
|
|
|
import com.ruoyi.common.core.web.domain.GenericsAjaxResult; |
|
|
|
import com.ruoyi.platform.domain.AutoMl; |
|
|
|
import com.ruoyi.platform.service.AutoMLService; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import org.springframework.data.domain.Page; |
|
|
|
import org.springframework.data.domain.PageRequest; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestParam; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
|
|
|
|
@RestController |
|
|
|
@RequestMapping("autoML") |
|
|
|
@Api("自动机器学习") |
|
|
|
public class AutoMLController extends BaseController { |
|
|
|
|
|
|
|
@Resource |
|
|
|
private AutoMLService autoMLService; |
|
|
|
|
|
|
|
@GetMapping |
|
|
|
@ApiOperation("分页查询") |
|
|
|
public GenericsAjaxResult<Page<AutoMl>> queryByPage(@RequestParam("page") int page, |
|
|
|
@RequestParam("size") int size, |
|
|
|
@RequestParam(value = "mlName", required = false) String mlName) { |
|
|
|
PageRequest pageRequest = PageRequest.of(page, size); |
|
|
|
return genericsSuccess(this.autoMLService.queryByPage(mlName, pageRequest)); |
|
|
|
|
|
|
|
} |
|
|
|
} |