package com.qianwen.smartman.modules.fms.controller;
|
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import com.qianwen.core.boot.ctrl.BladeController;
|
import com.qianwen.core.scanner.modular.stereotype.ApiResource;
|
import com.qianwen.core.tool.api.R;
|
import com.qianwen.smartman.modules.fms.service.IFmsScheduleService;
|
import com.qianwen.smartman.modules.fms.vo.ManualTrayVO;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RestController;
|
|
@ApiResource({"blade-fms/schedule"})
|
@Api(value = "fms调度", tags = {"fms调度"})
|
@RestController
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/fms/controller/FmsScheduleController.class */
|
public class FmsScheduleController extends BladeController {
|
private final IFmsScheduleService fmsScheduleService;
|
|
public FmsScheduleController(final IFmsScheduleService fmsScheduleService) {
|
this.fmsScheduleService = fmsScheduleService;
|
}
|
|
@PostMapping({"/manual-drag/check"})
|
@ApiOperation("校验前端拖动数据")
|
public R<Boolean> check(@RequestBody ManualTrayVO manualTrayVO) {
|
return R.data(this.fmsScheduleService.check(manualTrayVO));
|
}
|
|
@PostMapping({"/manual-drag"})
|
@ApiOperation("手动托盘移动")
|
public R<Boolean> manualDrag(@RequestBody ManualTrayVO manualTrayVO) {
|
return R.data(this.fmsScheduleService.manualDrag(manualTrayVO));
|
}
|
}
|