package cn.cslg.pas.controller; import cn.cslg.pas.common.core.base.Constants; import cn.cslg.pas.common.dto.business.ReportTempleDTO; import cn.cslg.pas.common.utils.Response; import cn.cslg.pas.common.vo.business.TempleByReportTypeVO; import cn.cslg.pas.service.business.ReportTempleService; 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 java.util.List; @Tag(name = "报告模板") @RestController @RequestMapping(Constants.API_XiaoSHI + "/template") public class TempleController { @Autowired private ReportTempleService templeService; @Operation(summary = "根据报告类型查询报告模板表") @PostMapping("/queryTempleByType") public Response queryTempleByType(@RequestBody TempleByReportTypeVO vo) { List list = templeService.queryTempleByType(vo); return Response.success(list); } }