🎨完成基本构想的全部

This commit is contained in:
2024-06-06 17:02:45 +08:00
parent 1bc4e7869a
commit b02ce4b0ba
24 changed files with 432 additions and 40 deletions

View File

@@ -25,3 +25,15 @@ export const updateGlobalSetting = (data?: object) => {
export const getPublicIP = () => {
return http.request<any>("get", baseUri("/setting/public-ip"));
};
// 获取服务端重启规则
export const getServerRestartRule = () => {
return http.request<any>("get", baseUri("/setting/restart-rule"));
};
// 重启服务端
export const restartServer = (data?: object) => {
return http.request<any>("post", baseUri("/server/control-server"), {
data
});
};