package com.ruoyi.integration.barrierGate.controller;
|
|
import com.ruoyi.common.core.domain.R;
|
import com.ruoyi.integration.api.vo.SwitchwayGateReq;
|
import com.ruoyi.integration.barrierGate.server.SwitchwayGateService;
|
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 zhibing.pu
|
* @Date 2024/9/10 9:43
|
*/
|
@RestController
|
@RequestMapping("/switchwayGate")
|
public class SwitchwayGateController {
|
|
@Resource
|
private SwitchwayGateService switchwayGateService;
|
|
|
/**
|
* 开关道闸
|
* @param req
|
* @return
|
*/
|
@PostMapping("/gateService")
|
public R<Boolean> gateService(@RequestBody SwitchwayGateReq req){
|
Boolean aBoolean = switchwayGateService.gateService(req);
|
return R.ok(aBoolean);
|
}
|
}
|