package com.wms_main.controller.wms;
import com.wms_main.model.dto.query.EquipmentQuery;
import com.wms_main.model.dto.response.wms.WmsApiResponse;
import com.wms_main.model.vo.wms.EquipmentVo;
import com.wms_main.model.vo.wms.PageVo;
import com.wms_main.service.controller.IEquipmentControllerService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

@RestController
@ResponseBody
@CrossOrigin
@RequiredArgsConstructor
@RequestMapping("/wms/equipment")
public class EquipmentController {
    private final IEquipmentControllerService equipmentControllerService;

    /**
     * 查询堆垛机信息
     * @param equipmentQuery 查询参数
     * @return 查询结果
     */
    @PostMapping("/queryEquipmentInfoByPage")
    public WmsApiResponse<PageVo<EquipmentVo>> queryEquipmentInfoByPage(@RequestBody EquipmentQuery equipmentQuery) {
        return equipmentControllerService.queryEquipmentInfoByPage(equipmentQuery);
    }
}