package com.iailab.module.prod.controller; import com.iailab.framework.common.pojo.CommonResult; import com.iailab.module.prod.dto.PageCharsDTO; import com.iailab.module.prod.service.PageCharsService; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; import javax.annotation.Resource; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.util.List; /** * @author DongYukun * @Description * @createTime 2024年5月10日 15:06:00 */ @RestController @RequestMapping("/analysis/raw") @Tag(name = "原煤趋势分析") public class PageCharsController { @Resource PageCharsService pageCharsService; @GetMapping("{page}") @Operation(summary = "原煤趋势分析数据") public CommonResult> get(@PathVariable("page") String page) { List dtoList = pageCharsService.getData(page); return new CommonResult>().setData(dtoList); } }