TRX 1 год назад
Родитель
Сommit
595c2b5a18

+ 4 - 0
src/main/java/com/zswl/dataservice/controller/free/GateWayFreeController.java

@@ -6,6 +6,7 @@ import com.zswl.dataservice.service.mqtt.GateWayInfoService;
 import com.zswl.dataservice.utils.result.ResultContent;
 import io.swagger.v3.oas.annotations.Operation;
 import io.swagger.v3.oas.annotations.tags.Tag;
+import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.util.Assert;
 import org.springframework.validation.annotation.Validated;
@@ -24,6 +25,7 @@ import org.springframework.web.bind.annotation.RestController;
 @RestController
 @Validated
 @Tag(name = "网关开发接口")
+@Slf4j
 public class GateWayFreeController {
 
     @Autowired
@@ -36,6 +38,7 @@ public class GateWayFreeController {
     @RequestMapping(value = "registerGateWay", method = {RequestMethod.POST})
     public ResultContent<MqttInfoReturnModel> registerGateWay(@RequestBody GateWayInfoAddParam param) {
         Assert.hasText(param.getGateWayId(), "网关ID不能为空");
+        log.info("-----------------------注册网关---------------------- {}", param);
         return gateWayInfoService.registerGateWay(param);
     }
 
@@ -43,6 +46,7 @@ public class GateWayFreeController {
     @RequestMapping(value = "gateWayBindDevice", method = {RequestMethod.POST})
     public ResultContent gateWayBindDevice(@RequestBody GateWayBindDeviceParam param) {
         Assert.hasText(param.getGateWayId(), "网关ID不能为空");
+        log.info("-------------------------网关绑定设备------------------------: {}", param);
         return gateWayInfoService.gateWayBindDevice(param);
     }