12345678910111213141516171819202122232425262728293031 |
- 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<ReportTempleDTO> list = templeService.queryTempleByType(vo);
- return Response.success(list);
- }
- }
|