package com.wms_main.controller.wms;

import com.wms_main.model.dto.query.PickPlanQuery;
import com.wms_main.model.dto.response.wms.WmsApiResponse;
import com.wms_main.model.vo.wms.PageVo;
import com.wms_main.model.vo.wms.PickPlanVo;
import com.wms_main.service.controller.IPickPlanControllerService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 * 卡特相关控制类
 */
@RestController
@ResponseBody
@CrossOrigin
@RequiredArgsConstructor
@RequestMapping("/wms/pickPlan")
public class PickPlanController {
    private final IPickPlanControllerService pickPlanControllerService;

    /**
     * 分页查询拣选计划
     * @param pickPlanQuery 查询参数
     * @return 查询结果
     */
    @PostMapping("/queryPickPlansByPage")
    public WmsApiResponse<PageVo<PickPlanVo>> queryPickPlansByPage(@RequestBody PickPlanQuery pickPlanQuery) {
        return pickPlanControllerService.queryPickPlanInfoByPage(pickPlanQuery);
    }
}
