package thyyxxk.webserver.controller.highreport;

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;
import thyyxxk.webserver.config.auth.PassToken;
import thyyxxk.webserver.entity.ResultVo;
import thyyxxk.webserver.entity.highreport.HighReportDto;
import thyyxxk.webserver.service.highreport.FullScreenService;

import java.util.Map;

/**
 * @Description: 数字大屏后台请求
 * @Author: hsh
 * @CreateTime: 2022-12-13  15:47
 * @Version: 1.0
 */
@RestController
@RequestMapping("/fullScreen")
public class FullScreenController {

    private final FullScreenService service;

    @Autowired
    public FullScreenController(FullScreenService service) {
        this.service = service;
    }

    @PassToken
    @PostMapping("/selectFullScreenData")
    public ResultVo<Map<String, Object>> selectFullScreenData(@RequestBody @Validated HighReportDto dto){
        return service.selectFullScreenData(dto);
    }


}
