|
|
@@ -0,0 +1,26 @@
|
|
|
+package com.genersoft.iot.vmp.extend.controller;
|
|
|
+
|
|
|
+import com.genersoft.iot.vmp.extend.entity.ExtendDevice;
|
|
|
+import com.genersoft.iot.vmp.extend.service.ExtendDeviceService;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping(value = "/internal/device")
|
|
|
+public class ExtendDeviceController {
|
|
|
+
|
|
|
+ @Resource
|
|
|
+ private ExtendDeviceService deviceService;
|
|
|
+
|
|
|
+ @GetMapping("/page")
|
|
|
+ public List<ExtendDevice> devices(){
|
|
|
+ return deviceService.devices();
|
|
|
+ }
|
|
|
+
|
|
|
+}
|