package org.jeecg.modules.api.controller;

import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.api.service.ScreenDashboardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/screen")
public class ScreenDashboardController {

    @Autowired
    private ScreenDashboardService dashboardService;

    @GetMapping("/dashboard")
    public Result<?> dashboard(@RequestParam(required = false) String month) {
        return Result.ok(dashboardService.queryDashboard(month));
    }
}
