package com.shkj.wms.controller.third;


import com.shkj.common.core.domain.AjaxResult;
import com.shkj.wms.service.IStackService;
import com.shkj.wms.vo.PackerMoveVo;
import lombok.extern.slf4j.Slf4j;
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 javax.annotation.Resource;

/**
 * @author Comair
 * @date 2023年07月30日 11:51
 */
@Slf4j
@RestController
@RequestMapping("/wcs/stacker")
public class StackController {

    @Resource
    private IStackService iStackService;

    /**
     * 移动、移栽指令
     * @author Comair
     * @date 2023/7/30 14:15
     * @param packerMoveVo
     * @return com.shkj.common.core.domain.AjaxResult
     */
    @PostMapping("/move")
    public AjaxResult move(@RequestBody PackerMoveVo packerMoveVo) {
        return this.iStackService.move(packerMoveVo);
    }

    @PostMapping("/punchingOperation")
    public AjaxResult punchingOperation(int planStatus) {
        return this.iStackService.punchingOperation(planStatus);
    }


}
