package com.yh.saas.plugin.yiliangyiyun.controller;


import com.yh.saas.plugin.yiliangyiyun.entity.WarehousePositionInfo;
import com.yh.saas.plugin.yiliangyiyun.service.IWarehousePositionInfoService;
import org.springframework.beans.factory.annotation.Autowired;
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;

/**
 * <p>
 * 记录仓库仓位信息 前端控制器
 * </p>
 *
 * @author Gongdc
 * @since 2021-05-21
 */
@RestController
@RequestMapping("/warehousePositionInfo")
public class WarehousePositionInfoController {

    @Autowired
    private IWarehousePositionInfoService warehousePositionInfoService;
    /**
     * 删除仓位
     */
    @PostMapping("/api/deleteWarehousePosition")
    public void deleteWarehousePosition(@RequestBody WarehousePositionInfo warehousePositionInfo){
            warehousePositionInfoService.deleteWarehousePosition(warehousePositionInfo.getId());
    }

}

