TRX vor 1 Jahr
Ursprung
Commit
c553cc8798

+ 21 - 0
OneCardIotServer/src/main/java/com/zhongshu/iot/server/core/controller/openAPi/DeviceIotOpenApiController.java

@@ -0,0 +1,21 @@
+package com.zhongshu.iot.server.core.controller.openAPi;
+
+import io.swagger.v3.oas.annotations.tags.Tag;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * 设备相关的 openApi 接口
+ *
+ * @author TRX
+ * @date 2024/11/11
+ */
+@RequestMapping("/iotOpenAPI/manager/devices")
+@RestController
+@Validated
+@Tag(name = "设备管理-开放接口")
+public class DeviceIotOpenApiController {
+
+
+}

+ 1 - 1
OneCardIotServer/src/main/java/com/zhongshu/iot/server/core/service/openApi/OpenAPIRegisterService.java

@@ -31,7 +31,7 @@ public class OpenAPIRegisterService {
 
     public ResultContent initRegisterPAIS() {
         String str = restTemplate.getForObject("http://" + serviceId + "/v3/api-docs", String.class);
-        String sign = "oitOpenAPI";
+        String sign = "iotOpenAPI";
         List<OpenApiInfo> openAPIS = OpenAPIScan.scanAPI(str, "物联网", sign);
         RefreshApiParam param = new RefreshApiParam();
         param.setServerName(serviceId.toLowerCase());