🎨完成基本构想的全部

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

@@ -13,6 +13,16 @@ export const downloadClient = (id: string) => {
});
};
// 客户端IP生成
export const generateClientIP = (data?: object) => {
return http.request<any>("post", baseUri("/client/assignIP"), { data });
};
// 生成客户端密钥对
export const generateClientKeys = () => {
return http.request<any>("post", baseUri("/client/generate-keys"));
};
// 获取客户端配置二维码
export const clientQrCode = (id: string) => {
return http.request<any>("post", baseUri("/client/generate-qrcode/" + id));
@@ -32,3 +42,8 @@ export const deleteClient = (id: string) => {
export const getClientConnects = () => {
return http.request<any>("get", baseUri("/client/status"));
};
// 强制下线客户端
export const offlineClient = (id: string) => {
return http.request<any>("post", baseUri("/client/offline/" + id));
};

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
});
};