package com.iailab.module.pms.coalquality.modules.analysis.controller.admin; import com.iailab.framework.common.pojo.CommonResult; import com.iailab.module.pms.coalquality.modules.analysis.dto.CoalWashCurvesChartDTO; import com.iailab.module.pms.coalquality.modules.analysis.service.CoalWashCurvesChartService; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import static com.iailab.framework.common.pojo.CommonResult.success; /** * @author PanZhibao * @Description * @createTime 2023年01月20日 09:56:00 */ @RestController @RequestMapping("/xmcpms/coal-quality/analysis/wash-curves-chart") @Tag(name="可选性曲线图") public class CoalWashCurvesChartController { @Autowired private CoalWashCurvesChartService coalWashCurvesChartService; @PostMapping("/draw") @Operation(summary="绘制") public CommonResult draw(@RequestBody CoalWashCurvesChartDTO dto) { CoalWashCurvesChartDTO data = coalWashCurvesChartService.draw(dto); return success(data); } @GetMapping("/get") @Operation(summary="信息") public CommonResult get(String curvesId){ CoalWashCurvesChartDTO data = coalWashCurvesChartService.getByCurvesId(curvesId); return success(data); } }