package vip.xiaonuo.warehouse.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
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 vip.xiaonuo.common.pojo.CommonResult;
import vip.xiaonuo.warehouse.entity.WarehouseStockDetail;
import vip.xiaonuo.warehouse.entity.WarehouseStockVo;
import vip.xiaonuo.warehouse.param.WarehouseStockDetailParam;
import vip.xiaonuo.warehouse.param.WarehouseStockParam;
import vip.xiaonuo.warehouse.service.IWarehouseStockDetailService;

import java.util.List;

/**
 * <p>
 * 仓库库存明细表 前端控制器
 * </p>
 *
 * @author author
 * @since 2024-12-04
 */

@Api(tags = "仓库库存明细表")
@ApiSupport(author = "wang", order = 1)
@RestController
@Validated
public class WarehouseStockDetailController {

    @Autowired
    private IWarehouseStockDetailService detailService;

    @ApiOperationSupport(order = 1)
    @ApiOperation("物料库存明细")
    @PostMapping("/warehouse-stock-detail/listDetail")
    public CommonResult<Page<WarehouseStockDetail>> listDetail(@RequestBody WarehouseStockDetailParam detailParam) {
        return CommonResult.data(detailService.listDetail(detailParam));
    }
}
