package com.celnet.datadump.controller; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.celnet.datadump.entity.DataReport; import com.celnet.datadump.global.Result; import com.celnet.datadump.service.DataReportService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RestController; /** *

* 数据报表 前端控制器 *

* * @author Red * @since 2023-03-10 */ @RestController @Api(value = "dataReport", tags = "报表") @RequestMapping("/dataReport") public class DataReportController { @Autowired private DataReportService dataReportService; @GetMapping("/page") @ApiOperation("dataReport page") public Result page(Page page, DataReport dataReport) { return Result.success(dataReportService.getPage(page, dataReport)); } @GetMapping @ApiOperation("dataReport list") public Result list(DataReport dataReport) { return Result.success(dataReportService.getList(dataReport)); } }