package com.ruoyi.web.modules.screen.controller;

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;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.web.modules.screen.service.ILivestockResourceScreenService;

/**
 * 大屏 — 畜牧资源统计（只读）
 */
@RestController
@RequestMapping("/bigScreen/livestockResource")
public class LivestockResourceScreenController extends BaseController
{
    @Autowired
    private ILivestockResourceScreenService livestockResourceScreenService;

    @GetMapping("/dashboard")
    public AjaxResult dashboard(@RequestParam("statYear") String statYear)
    {
        return success(livestockResourceScreenService.loadDashboard(statYear));
    }
}
