|
@@ -1,6 +1,10 @@
|
|
package com.xy.service;
|
|
package com.xy.service;
|
|
|
|
|
|
import com.xy.annotate.RestMappingController;
|
|
import com.xy.annotate.RestMappingController;
|
|
|
|
+import com.xy.dto.DeviceStatusDto;
|
|
|
|
+import com.xy.utils.R;
|
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
|
/**
|
|
/**
|
|
* <p>
|
|
* <p>
|
|
@@ -13,4 +17,12 @@ import com.xy.annotate.RestMappingController;
|
|
@RestMappingController("device-status")
|
|
@RestMappingController("device-status")
|
|
public interface DeviceStatusService {
|
|
public interface DeviceStatusService {
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 上报信息
|
|
|
|
+ *
|
|
|
|
+ * @param up
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @PostMapping("up")
|
|
|
|
+ R up(@RequestBody DeviceStatusDto.Up up);
|
|
}
|
|
}
|