|
@@ -1,9 +1,6 @@
|
|
|
package com.zcxk.rmcp.web.controller;
|
|
|
|
|
|
import com.zcxk.core.common.pojo.AjaxMessage;
|
|
|
-import com.zcxk.rmcp.core.entity.Device;
|
|
|
-import com.zcxk.rmcp.web.service.DeviceService;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
@@ -19,14 +16,10 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
public class TestController {
|
|
|
|
|
|
|
|
|
- @Autowired
|
|
|
- DeviceService deviceService;
|
|
|
|
|
|
@PostMapping("/test")
|
|
|
public AjaxMessage<Void> test(){
|
|
|
- Device device = deviceService.findById(1L);
|
|
|
- System.out.println(device);
|
|
|
- return AjaxMessage.success();
|
|
|
+ return null;
|
|
|
}
|
|
|
|
|
|
}
|