package com.huimv.receive.controller;


import com.huimv.receive.common.utils.Result;
import com.huimv.receive.service.IBillGoodsInventoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author author
 * @since 2023-08-22
 */
@RestController
@RequestMapping("/bill-goods-inventory")
@CrossOrigin
public class BillGoodsInventoryController {

    @Autowired
    private IBillGoodsInventoryService goodsInventoryService;

    @RequestMapping("/listAll")
    public Result listAll(HttpServletRequest httpServletRequest, @RequestBody Map<String, String> paramsMap) {
        return goodsInventoryService.listAll(httpServletRequest, paramsMap);
    }
}
