package com.ruoyi.web.controller.bussiness; import com.ruoyi.bussiness.object.request.report.ReportRequest; import com.ruoyi.bussiness.object.response.screen.ScreenResponse; import com.ruoyi.bussiness.service.ScreenService; import com.ruoyi.common.core.domain.BaseResult; import com.ruoyi.common.core.domain.ResponseUtils; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @Validated @Api(value = "大屏数据",tags = "大屏数据") @RestController @RequestMapping(value = "/screen") public class ScreenController { @Autowired private ScreenService screenService; @ApiOperation(value = "数据", notes = "数据") @PostMapping(value = "/data") public BaseResult data(@RequestBody ReportRequest request) { ScreenResponse response = screenService.data(request); return ResponseUtils.successResponse(response); } }