[*] 日常优化
This commit is contained in:
@@ -3237,7 +3237,7 @@ class Taoyao extends RemoteClient {
|
|||||||
/**
|
/**
|
||||||
* 重启系统信令
|
* 重启系统信令
|
||||||
*
|
*
|
||||||
* @returns 重启系统
|
* @returns 重启系统结果
|
||||||
*/
|
*/
|
||||||
async systemReboot() {
|
async systemReboot() {
|
||||||
return await this.request(protocol.buildMessage("system::reboot", {}));
|
return await this.request(protocol.buildMessage("system::reboot", {}));
|
||||||
@@ -3246,7 +3246,7 @@ class Taoyao extends RemoteClient {
|
|||||||
/**
|
/**
|
||||||
* 关闭系统信令
|
* 关闭系统信令
|
||||||
*
|
*
|
||||||
* @returns 关闭系统
|
* @returns 关闭系统结果
|
||||||
*/
|
*/
|
||||||
async systemShutdown() {
|
async systemShutdown() {
|
||||||
return await this.request(protocol.buildMessage("system::shutdown", {}));
|
return await this.request(protocol.buildMessage("system::shutdown", {}));
|
||||||
|
|||||||
@@ -61,7 +61,6 @@ public class SystemInfoProtocol extends ProtocolClientAdapter {
|
|||||||
final Map<String, Object> info = new HashMap<>();
|
final Map<String, Object> info = new HashMap<>();
|
||||||
// 硬盘
|
// 硬盘
|
||||||
final List<Diskspace> diskspace = new ArrayList<>();
|
final List<Diskspace> diskspace = new ArrayList<>();
|
||||||
// File.listRoots();
|
|
||||||
// FileSystems.getDefault().getFileStores();
|
// FileSystems.getDefault().getFileStores();
|
||||||
Stream.of(File.listRoots()).forEach(v -> {
|
Stream.of(File.listRoots()).forEach(v -> {
|
||||||
diskspace.add(new Diskspace(v.getPath(), v.getFreeSpace(), v.getTotalSpace()));
|
diskspace.add(new Diskspace(v.getPath(), v.getFreeSpace(), v.getTotalSpace()));
|
||||||
|
|||||||
@@ -19,9 +19,9 @@ import lombok.extern.slf4j.Slf4j;
|
|||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Description(
|
@Description(
|
||||||
|
memo = "重启系统",
|
||||||
flow = {
|
flow = {
|
||||||
"信令服务+)终端",
|
"信令服务+)终端",
|
||||||
"终端->信令服务+)终端",
|
|
||||||
"终端=>信令服务+)终端"
|
"终端=>信令服务+)终端"
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user