package com.iailab.module.model.mcs.pre.controller.admin; 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.MmItemTypeEntity; 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.security.access.prepost.PreAuthorize; 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.RequestParam; import org.springframework.web.bind.annotation.RestController; import java.util.List; import java.util.Map; import static com.iailab.framework.common.pojo.CommonResult.success; /** * @author PanZhibao * @date 2021年05月07日 16:53 */ @RestController @RequestMapping("/model/pre/model-resultstr") public class MmModelResultstrController { @Autowired private MmModelResultstrService mmModelResultstrService; /** * 预测项结果列表 */ @GetMapping("/page") public CommonResult> page(@Validated MmModelResultstrPageReqVO reqVO) { PageResult page = mmModelResultstrService.page(reqVO); return success(BeanUtils.toBean(page, MmModelResultstrRespVO.class)); } @GetMapping("/list") public CommonResult> list(@RequestParam Map params) { List list = mmModelResultstrService.list(params); return success(list); } }