package com.fjhx.stock.controller;

import com.fjhx.entity.stock.StockArea;
import com.fjhx.stock.service.StockAreaService;
import org.springblade.core.tenant.annotation.TenantIgnore;
import org.springblade.core.tool.api.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 仓库 前端控制器
 * </p>
 *
 * @author ${author}
 * @since 2022-08-01
 */
@TenantIgnore
@RestController
@RequestMapping("/stockArea")
public class StockAreaController {

    @Autowired
    private StockAreaService stockAreaService;

    /**
     * 查询1号仓库货架列表
     */
    @PostMapping("/list")
    public R list() {
        List<StockArea> result = stockAreaService.getList();
        return R.success(result);
    }

}

