package com.iailab.module.model.mcs.pre.controller;
|
|
import com.iailab.framework.common.pojo.CommonResult;
|
import com.iailab.framework.common.pojo.PageResult;
|
import com.iailab.framework.common.util.object.BeanUtils;
|
import com.iailab.module.model.mcs.pre.entity.MmModelResultstrEntity;
|
import com.iailab.module.model.mcs.pre.service.MmModelResultstrService;
|
import com.iailab.module.model.mcs.pre.vo.MmModelResultstrPageReqVO;
|
import com.iailab.module.model.mcs.pre.vo.MmModelResultstrRespVO;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.validation.annotation.Validated;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import java.util.Map;
|
|
import static com.iailab.framework.common.pojo.CommonResult.success;
|
|
/**
|
* @author PanZhibao
|
* @date 2021年05月07日 16:53
|
*/
|
@RestController
|
@RequestMapping("/pre/model-resultstr")
|
public class MmModelResultstrController {
|
|
@Autowired
|
private MmModelResultstrService mmModelResultstrService;
|
|
/**
|
* 预测项结果列表
|
*/
|
@GetMapping("/page")
|
public CommonResult<PageResult<MmModelResultstrRespVO>> page(@Validated MmModelResultstrPageReqVO reqVO) {
|
PageResult<MmModelResultstrEntity> page = mmModelResultstrService.page(reqVO);
|
|
return success(BeanUtils.toBean(page, MmModelResultstrRespVO.class));
|
}
|
}
|