|
@@ -0,0 +1,42 @@
|
|
|
+package com.github.zuihou.business.controller.externalApi;
|
|
|
+
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.github.zuihou.base.R;
|
|
|
+import com.github.zuihou.business.externalApi.service.PlcService;
|
|
|
+import com.github.zuihou.log.annotation.SysLog;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.validation.annotation.Validated;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @Project: imcs-admin-boot
|
|
|
+ * @Package: com.github.zuihou.business.controller.externalApi
|
|
|
+ * @Author: Lenovo
|
|
|
+ * @Time: 2024 - 12 - 16 16 : 05
|
|
|
+ * @Description:
|
|
|
+ */
|
|
|
+@Slf4j
|
|
|
+@Validated
|
|
|
+@RestController
|
|
|
+@RequestMapping("/api/external-interaction")
|
|
|
+@Api(value = "ThreeDimensionalControl", tags = "ThreeDimensionalControl")
|
|
|
+@SysLog(enabled = true)
|
|
|
+public class ThreeDimensionalControl {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private PlcService plcService;
|
|
|
+
|
|
|
+ @PostMapping(value = "/three-coordinate-test-results")
|
|
|
+ @SysLog("接受三坐标检测数据")
|
|
|
+ public R threeCoordinateTestResults(@RequestBody String json) throws Exception{
|
|
|
+
|
|
|
+ log.info("====================接受三坐标数据===================={}",json);
|
|
|
+
|
|
|
+ return R.success();
|
|
|
+ }
|
|
|
+
|
|
|
+}
|