package com.bonus.sgzb.largeScreen.controller;

import com.bonus.sgzb.common.core.web.controller.BaseController;
import com.bonus.sgzb.common.core.web.domain.AjaxResult;
import com.bonus.sgzb.common.log.annotation.Log;
import com.bonus.sgzb.common.log.enums.BusinessType;
import com.bonus.sgzb.largeScreen.service.ILargeScreenService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 10488
 * 大屏
 */
@RestController
@RequestMapping("/largeScreen/home/")
public class LargeScreenController extends BaseController {

    @Resource(name = "ILargeScreenService")
    private ILargeScreenService service;

    @Log(title = "领料数据", businessType = BusinessType.QUERY)
    @PostMapping("getMaterialReqData")
    public AjaxResult getMaterialReqData() {
        return service.getMaterialReqData();
    }
}
