| | |
| | | import cn.flightfeather.supervision.lightshare.service.DataProdBaseService |
| | | import cn.flightfeather.supervision.lightshare.vo.dataprod.QueryOpt |
| | | import io.swagger.annotations.Api |
| | | import io.swagger.annotations.ApiOperation |
| | | import io.swagger.annotations.ApiParam |
| | | import org.springframework.web.bind.annotation.* |
| | | |
| | | /** |
| | |
| | | * @date 2025/9/15 |
| | | * @author feiyu02 |
| | | */ |
| | | @Api(tags = ["DataProdBaseController"], description = "基础数据产品相关API接口") |
| | | @Api(tags = ["基础数据产品相关API接口"], description = "基础数据产品相关API接口") |
| | | @RestController |
| | | @RequestMapping("/dataProd/base") |
| | | class DataProdBaseController(private val dataProdBaseService: DataProdBaseService) { |
| | |
| | | /** |
| | | * 场景列表 |
| | | */ |
| | | @ApiOperation(value = "场景列表") |
| | | @PostMapping("/scene/get") |
| | | fun getSceneInfo(@RequestBody queryOpt: QueryOpt) = resPack { dataProdBaseService.getSceneInfo(queryOpt) } |
| | | fun getSceneInfo(@ApiParam("查询条件") @RequestBody queryOpt: QueryOpt) = |
| | | dataProdBaseService.getSceneInfo(queryOpt) |
| | | |
| | | /** |
| | | * 规范评估列表 |
| | | */ |
| | | @ApiOperation(value = "规范评估列表") |
| | | @PostMapping("/evaluate/get") |
| | | fun getEvaluateInfo(@RequestBody queryOpt: QueryOpt) = resPack { dataProdBaseService.getEvaluateInfo(queryOpt) } |
| | | fun getEvaluateInfo(@ApiParam("查询条件") @RequestBody queryOpt: QueryOpt) = |
| | | dataProdBaseService.getEvaluateInfo(queryOpt) |
| | | |
| | | /** |
| | | * 巡查列表 |
| | | */ |
| | | @ApiOperation(value = "巡查列表") |
| | | @PostMapping("/inspection/get") |
| | | fun getInspectionInfo(@RequestBody queryOpt: QueryOpt) = resPack { dataProdBaseService.getInspectionInfo(queryOpt) } |
| | | fun getInspectionInfo(@ApiParam("查询条件") @RequestBody queryOpt: QueryOpt) = |
| | | dataProdBaseService.getInspectionInfo(queryOpt) |
| | | |
| | | |
| | | /** |
| | | * 监测数据列表 |
| | | */ |
| | | @ApiOperation(value = "监测数据列表") |
| | | @PostMapping("/monitorData/get") |
| | | fun getMonitorDataInfo(@RequestBody queryOpt: QueryOpt) = resPack { dataProdBaseService.getMonitorDataInfo(queryOpt) } |
| | | fun getMonitorDataInfo(@ApiParam("查询条件") @RequestBody queryOpt: QueryOpt) = |
| | | dataProdBaseService.getMonitorDataInfo(queryOpt) |
| | | } |