yanghb
2025-05-07 bf8f34752cc7584193d490cd6c1fe5850d31a269
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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<ScreenResponse> data(@RequestBody ReportRequest request) {
        ScreenResponse response = screenService.data(request);
        return ResponseUtils.successResponse(response);
    }
 
}