|
@@ -2,6 +2,7 @@ package com.diagbot.web;
|
|
|
|
|
|
import com.diagbot.annotation.SysLogger;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
+import com.diagbot.util.SerialNumberUtil;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -11,6 +12,7 @@ import java.io.BufferedReader;
|
|
|
import java.io.IOException;
|
|
|
import java.io.InputStreamReader;
|
|
|
import java.util.Iterator;
|
|
|
+import java.util.List;
|
|
|
import java.util.Map;
|
|
|
import java.util.Properties;
|
|
|
|
|
@@ -68,6 +70,14 @@ public class MrqcmanController {
|
|
|
}
|
|
|
return mac;
|
|
|
}
|
|
|
+ @ApiOperation(value = "测试获取cpu", notes = "测试获取cpu")
|
|
|
+ @PostMapping("/getAllSn")
|
|
|
+ @SysLogger("getAllSn")
|
|
|
+ public RespDTO<String> getAllSn() {
|
|
|
+ Map<String, List<String>> op = SerialNumberUtil.getAllSn();
|
|
|
+ return RespDTO.onSuc(op);
|
|
|
+ }
|
|
|
+
|
|
|
public static void main(String[] argc) {
|
|
|
|
|
|
Properties properties = System.getProperties();
|